DispositivoJUnit4ClassRunner
public class DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver
java.lang.Oggetto |
↳ | org.junit.runner.Runner |
| ↳ | org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod> |
| | ↳ | org.junit.runners.BlockJUnit4ClassRunner |
| | | ↳ | com.android.tradefed.testtype.DeviceJUnit4ClassRunner |
Test runner JUnit4 che supporta anche IDeviceTest
. Deve essere specificato sopra JUnit4 Test con un'annotazione RunWith.
Riepilogo
Classi nidificate |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation Annotazione falsa destinata a portare i registri ai giornalisti. |
class | DeviceJUnit4ClassRunner.MetricAnnotation Annotazione falsa destinata a fornire metriche ai giornalisti. |
class | DeviceJUnit4ClassRunner.TestLogData Implementazione di ExternalResource e TestRule . |
class | DeviceJUnit4ClassRunner.TestMetrics Implementazione di ExternalResource e TestRule . |
Costruttori pubblici
DispositivoJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
Getta |
---|
InitializationError | |
Metodi pubblici
getAbi
public IAbi getAbi ()
correre
public void run (RunNotifier notifier)
Parametri |
---|
notifier | RunNotifier |
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
Parametri |
---|
testInformation | TestInformation |
Metodi protetti
creareTest
protected Object createTest ()
Sovrascriviamo createTest per impostare il dispositivo.
runChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
Parametri |
---|
method | FrameworkMethod |
notifier | RunNotifier |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
Parametri |
---|
statement | Statement |
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
Parametri |
---|
statement | Statement |
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2023-04-28 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Mancano le informazioni di cui ho bisogno"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Troppo complicato/troppi passaggi"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Obsoleti"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problema di traduzione"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problema relativo a esempi/codice"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Altra"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Facile da capire"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Il problema è stato risolto"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Altra"
}]