The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame^] | 1 | package junit.runner; |
| 2 | |
| 3 | /** |
| 4 | * The standard test suite loader. It can only load the same class once. |
| 5 | * {@hide} - Not needed for 1.0 SDK |
| 6 | */ |
| 7 | public class StandardTestSuiteLoader implements TestSuiteLoader { |
| 8 | /** |
| 9 | * Uses the system class loader to load the test class |
| 10 | */ |
| 11 | public Class load(String suiteClassName) throws ClassNotFoundException { |
| 12 | return Class.forName(suiteClassName); |
| 13 | } |
| 14 | /** |
| 15 | * Uses the system class loader to load the test class |
| 16 | */ |
| 17 | public Class reload(Class aClass) throws ClassNotFoundException { |
| 18 | return aClass; |
| 19 | } |
| 20 | } |