Fix JENKINS-18443

Modified XUnitPublisher.java for verifing all tests and not just the last test.
Refractor the code
Merge pull request #8 from harcher81/master

Fix JENKINS-18443