ClassResult targetClass = targetPackage.getClassResult(sourceClass.getName());
if (targetClass == null) {
targetPackage.add(sourceClass);
} else {
for (Iterator<?> itSourceTest = sourceClass.getTestIterator(); itSourceTest.hasNext(); ) {
TestResult sourceTest = (TestResult) itSourceTest.next();
boolean hasTest = false;
for (Iterator<?> it = targetClass.getTestIterator(); it.hasNext(); ) {
TestResult tr = (TestResult) it.next();
if (tr.getName().equals(sourceTest.getName())) {
hasTest = true;
break;
}
}