diff options
Diffstat (limited to 'luni/src/test/java/junit/runner/StandardTestSuiteLoader.java')
-rw-r--r-- | luni/src/test/java/junit/runner/StandardTestSuiteLoader.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/luni/src/test/java/junit/runner/StandardTestSuiteLoader.java b/luni/src/test/java/junit/runner/StandardTestSuiteLoader.java new file mode 100644 index 0000000..1137675 --- /dev/null +++ b/luni/src/test/java/junit/runner/StandardTestSuiteLoader.java @@ -0,0 +1,19 @@ +package junit.runner; + +/** + * The standard test suite loader. It can only load the same class once. + */ +public class StandardTestSuiteLoader implements TestSuiteLoader { + /** + * Uses the system class loader to load the test class + */ + public Class load(String suiteClassName) throws ClassNotFoundException { + return Class.forName(suiteClassName); + } + /** + * Uses the system class loader to load the test class + */ + public Class reload(Class aClass) throws ClassNotFoundException { + return aClass; + } +} |