KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junit > runner > ReloadingTestSuiteLoader


1 package junit.runner;
2
3 /**
4  * A TestSuite loader that can reload classes.
5  */

6 public class ReloadingTestSuiteLoader implements TestSuiteLoader {
7     
8     public Class JavaDoc load(String JavaDoc suiteClassName) throws ClassNotFoundException JavaDoc {
9         return createLoader().loadClass(suiteClassName, true);
10     }
11     
12     public Class JavaDoc reload(Class JavaDoc aClass) throws ClassNotFoundException JavaDoc {
13         return createLoader().loadClass(aClass.getName(), true);
14     }
15     
16     protected TestCaseClassLoader createLoader() {
17         return new TestCaseClassLoader();
18     }
19 }
Popular Tags