public void loadTestCases(Iterator classNamesIterator) {
while (classNamesIterator.hasNext())
{
String className = (String) classNamesIterator.next();
try
{
Class candidateClass = Class.forName(className);
addClassIfTestCase(candidateClass);
}
catch (ClassNotFoundException e)
{
System.err.println("Cannot load class: " + className + " " + e.getMessage());
}
catch (NoClassDefFoundError e)
{
System.err.println("Cannot load class that " + className + " is dependant on");
}
}
}
Load the classes that represent test cases we are interested. |