try {
Class<?> suiteClass = classLoader.loadClass(suiteClassname);
Test testSuite = (Test) suiteClass.getMethod("suite").invoke(null);
this.testSuite.addTest(securityManaged(testSuite));
} catch (Exception e) {
testSuite.addTest(new SuiteConstructionError(suiteClassname, e));
}
}
public TestSuite build() {
return testSuite;