• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package junit.runner;
2 
3 /**
4  * A TestSuite loader that can reload classes.
5  * {@hide} - Not needed for 1.0 SDK
6  */
7 public class ReloadingTestSuiteLoader implements TestSuiteLoader {
8 
load(String suiteClassName)9 	public Class load(String suiteClassName) throws ClassNotFoundException {
10 		return createLoader().loadClass(suiteClassName, true);
11 	}
12 
reload(Class aClass)13 	public Class reload(Class aClass) throws ClassNotFoundException {
14 		return createLoader().loadClass(aClass.getName(), true);
15 	}
16 
createLoader()17 	protected TestCaseClassLoader createLoader() {
18 		return new TestCaseClassLoader();
19 	}
20 }
21