InstrumentationTestSuitepublic class InstrumentationTestSuite extends TestSuite A {@link junit.framework.TestSuite} that injects {@link android.app.Instrumentation} into
{@link InstrumentationTestCase} before running them. |
Fields Summary |
---|
private final android.app.Instrumentation | mInstrumentation |
Methods Summary |
---|
public void | addTestSuite(java.lang.Class testClass)
addTest(new InstrumentationTestSuite(testClass, mInstrumentation));
| public void | runTest(junit.framework.Test test, junit.framework.TestResult result)
if (test instanceof InstrumentationTestCase) {
((InstrumentationTestCase) test).injectInsrumentation(mInstrumentation);
}
// run the test as usual
super.runTest(test, result);
|
|