android.test
Class InstrumentationTestSuite
java.lang.Object
junit.framework.TestSuite
android.test.InstrumentationTestSuite
- All Implemented Interfaces:
- Test
public class InstrumentationTestSuite
- extends TestSuite
A TestSuite that injects Instrumentation into
InstrumentationTestCase before running them.
| Methods inherited from class junit.framework.TestSuite |
addTest, countTestCases, createTest, getName, getTestConstructor, run, setName, testAt, testCount, tests, toString |
InstrumentationTestSuite
public InstrumentationTestSuite(Instrumentation instr)
- Parameters:
instr - The instrumentation that will be injected into each
test before running it.
InstrumentationTestSuite
public InstrumentationTestSuite(String name,
Instrumentation instr)
InstrumentationTestSuite
public InstrumentationTestSuite(Class theClass,
Instrumentation instr)
- Parameters:
theClass - Inspected for methods starting with 'test'instr - The instrumentation to inject into each test before
running.
addTestSuite
public void addTestSuite(Class testClass)
- Description copied from class:
TestSuite
- Adds the tests from the given class to the suite
- Overrides:
addTestSuite in class TestSuite
runTest
public void runTest(Test test,
TestResult result)
- Overrides:
runTest in class TestSuite
Please submit a feedback, bug or feature