if(junit.framework.TestCase.class.isAssignableFrom(tClass)) {
if(CompleteTest.class.equals(tClass)) {
// do not consider Complete Test, otherwise endless recursion
return;
}
Test tTest = getTestSuite(tClass, tPackage);
if(tTest != null) {
tTestVector.add(tTest);
}
}
} catch(ClassNotFoundException e) {
// ignore classes which cannot be loaded, we can't test them either
}
}
}
});
tNavigator.traverse();
TestSuite tTestSuite = new TestSuite("CompleteTest");
for(Iterator tIterator = tTestVector.iterator(); tIterator.hasNext(); ) {
Test tTest = (Test) tIterator.next();
if(tTest instanceof TestSuite) {
tTestSuite.addTest(tTest);
}
}
lOuter:
for(Iterator tIterator = tTestVector.iterator(); tIterator.hasNext(); ) {
Test tTest = (Test) tIterator.next();
if(tTest instanceof TestCase) {
System.out.println(((TestCase) tTest).getName());
/*
try {
find(tTestSuite, (TestCase) tTest);