summaryrefslogtreecommitdiff
path: root/test-junit/src/junit/runner/StandardTestSuiteLoader.java
blob: 808963a5aea09390c40752ef242bee28b0e50a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package junit.runner;

// android-changed - class not present in upstream JUnit 4.10
// added here to retain BaseTestRunner.getLoader API

/**
 * The standard test suite loader. It can only load the same class once.
 * {@hide}
 */
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;
    }
}