DeviceJUnit4ClassRunner
public
class
DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements
IAbiReceiver,
ISetOptionReceiver,
ITestInformationReceiver
java.lang.Object
|
↳ |
org.junit.runner.Runner
|
|
↳ |
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
|
|
|
↳ |
org.junit.runners.BlockJUnit4ClassRunner
|
|
|
|
↳ |
com.android.tradefed.testtype.DeviceJUnit4ClassRunner
|
JUnit4 test runner that also accommodates IDeviceTest
. Should be specified above JUnit4
Test with a RunWith annotation.
Summary
Nested classes |
class |
DeviceJUnit4ClassRunner.LogAnnotation
Fake annotation meant to carry logs to the reporters.
|
class |
DeviceJUnit4ClassRunner.MetricAnnotation
Fake annotation meant to carry metrics to the reporters.
|
class |
DeviceJUnit4ClassRunner.TestLogData
Implementation of ExternalResource and TestRule .
|
class |
DeviceJUnit4ClassRunner.TestMetrics
Implementation of ExternalResource and TestRule .
|
Public constructors
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
Throws |
InitializationError |
|
Public methods
getAbi
public IAbi getAbi ()
run
public void run (RunNotifier notifier)
Parameters |
notifier |
RunNotifier |
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
Parameters |
testInformation |
TestInformation |
Protected methods
createTest
protected Object createTest ()
We override createTest in order to set the device.
runChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
Parameters |
method |
FrameworkMethod |
notifier |
RunNotifier |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
Parameters |
statement |
Statement |
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
Parameters |
statement |
Statement |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-04-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-28 UTC."],[],[]]