junit.runner.ReloadingTestSuiteLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-bytecode-js-compiler Show documentation
Show all versions of dragome-bytecode-js-compiler Show documentation
Dragome SDK module: bytecode to javascript compiler
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();
}
}