blob: f7ef919cc3c75a5bc24b053575324fba841df4d5 [file] [log] [blame]
package junit.runner;
/**
* A TestSuite loader that can reload classes.
*/
public class ReloadingTestSuiteLoader implements TestSuiteLoader {
public Class load(String suiteClassName) throws ClassNotFoundException {
return createLoader().loadClass(suiteClassName, true);
}
public Class reload(Class aClass) throws ClassNotFoundException {
return createLoader().loadClass(aClass.getName(), true);
}
protected TestCaseClassLoader createLoader() {
return new TestCaseClassLoader();
}
}