blob: c4d80d0802ae7fb197095fd1e841221cc37a63d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package junit.runner;
/**
* A TestSuite loader that can reload classes.
* {@hide} - Not needed for 1.0 SDK
*/
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();
}
}
|