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 | |||
Exécuteur de test JUnit4 compatible avec IDeviceTest. Doit être spécifié au-dessus du test JUnit4 avec une annotation RunWith.
Résumé
Classes imbriquées | |
|---|---|
class |
DeviceJUnit4ClassRunner.LogAnnotation
Annotation factice destinée à transmettre des journaux aux signaleurs. |
class |
DeviceJUnit4ClassRunner.MetricAnnotation
Annotation factice destinée à transmettre des métriques aux signaleurs. |
class |
DeviceJUnit4ClassRunner.TestLogData
Implémentation de |
class |
DeviceJUnit4ClassRunner.TestMetrics
Implémentation de |
Constructeurs publics | |
|---|---|
DeviceJUnit4ClassRunner(Class<?> klass)
|
|
Méthodes publiques | |
|---|---|
IAbi
|
getAbi()
|
TestInformation
|
getTestInformation()
|
void
|
run(RunNotifier notifier)
|
void
|
setAbi(IAbi abi)
|
void
|
setTestInformation(TestInformation testInformation)
|
Méthodes protégées | |
|---|---|
Object
|
createTest()
Nous remplaçons createTest pour configurer l'appareil. |
void
|
runChild(FrameworkMethod method, RunNotifier notifier)
|
Statement
|
withAfterClasses(Statement statement)
|
Statement
|
withBeforeClasses(Statement statement)
|
Constructeurs publics
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
| Paramètres | |
|---|---|
klass |
Class |
| Génère | |
|---|---|
InitializationError |
|
Méthodes publiques
Exécuter
public void run (RunNotifier notifier)
| Paramètres | |
|---|---|
notifier |
RunNotifier |
setTestInformation
public void setTestInformation (TestInformation testInformation)
| Paramètres | |
|---|---|
testInformation |
TestInformation |
Méthodes protégées
createTest
protected Object createTest ()
Nous remplaçons createTest pour configurer l'appareil.
| Renvoie | |
|---|---|
Object |
|
runChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)| Paramètres | |
|---|---|
method |
FrameworkMethod |
notifier |
RunNotifier |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
| Paramètres | |
|---|---|
statement |
Statement |
| Renvoie | |
|---|---|
Statement |
|
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
| Paramètres | |
|---|---|
statement |
Statement |
| Renvoie | |
|---|---|
Statement |
|