KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junit > runner > StandardTestSuiteLoader


1 package junit.runner;
2
3 /**
4  * The standard test suite loader. It can only load the same class once.
5  */

6 public class StandardTestSuiteLoader implements TestSuiteLoader {
7     /**
8      * Uses the system class loader to load the test class
9      */

10     public Class JavaDoc load(String JavaDoc suiteClassName) throws ClassNotFoundException JavaDoc {
11         return Class.forName(suiteClassName);
12     }
13     /**
14      * Uses the system class loader to load the test class
15      */

16     public Class JavaDoc reload(Class JavaDoc aClass) throws ClassNotFoundException JavaDoc {
17         return aClass;
18     }
19 }
Popular Tags