InstrumentationTestSuite
public class InstrumentationTestSuite
extends Object
java.lang.Object | |
↳ | android.test.InstrumentationTestSuite |
This class was deprecated in API level 24.
Use InstrumentationRegistry instead. New tests should be written using the Android Testing Support Library.
A ERROR(/junit.framework.TestSuite)
that injects Instrumentation
into InstrumentationTestCase
before running them.
Summary
Public constructors | |
---|---|
InstrumentationTestSuite(Instrumentation instr) | |
InstrumentationTestSuite(Class<T> theClass, Instrumentation instr) | |
InstrumentationTestSuite(String name, Instrumentation instr) |
Public methods | |
---|---|
void | addTestSuite(Class<T> testClass) |
void | runTest(Test test, TestResult result) |
Inherited methods | |
---|---|
Public constructors
InstrumentationTestSuite
Added in API level 1
public InstrumentationTestSuite (Instrumentation instr)
Parameters | |
---|---|
instr | Instrumentation : The instrumentation that will be injected into each test before running it. |
InstrumentationTestSuite
Added in API level 1
public InstrumentationTestSuite (Class<T> theClass, Instrumentation instr)
Parameters | |
---|---|
theClass | Class : Inspected for methods starting with 'test' |
instr | Instrumentation : The instrumentation to inject into each test before running. |
InstrumentationTestSuite
Added in API level 1
public InstrumentationTestSuite (String name, Instrumentation instr)
Parameters | |
---|---|
name | String |
instr | Instrumentation |
Public methods
addTestSuite
Added in API level 1
public void addTestSuite (Class<T> testClass)
Parameters | |
---|---|
testClass | Class |
runTest
Added in API level 1
public void runTest (Test test, TestResult result)
Parameters | |
---|---|
test | Test |
result | TestResult |