A partire dal 2026, per allinearci al nostro modello di sviluppo trunk stabile e garantire la stabilità della piattaforma per l'ecosistema, pubblicheremo il codice sorgente su AOSP nel secondo e nel quarto trimestre. Per compilare e contribuire ad AOSP, utilizza android-latest-release. Il branch del manifest android-latest-release farà sempre riferimento alla release più recente pubblicata su AOSP. Per saperne di più, consulta la sezione Modifiche ad AOSP.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
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
|
Esecutore di test JUnit4 che supporta anche IDeviceTest. Deve essere specificato sopra il test JUnit4
con un'annotazione RunWith.
Riepilogo
Metodi protetti |
Object
|
createTest()
Eseguiamo l'override di createTest per impostare il dispositivo.
|
void
|
runChild(FrameworkMethod method, RunNotifier notifier)
|
Statement
|
withAfterClasses(Statement statement)
|
Statement
|
withBeforeClasses(Statement statement)
|
Costruttori pubblici
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
| Genera |
InitializationError |
|
Metodi pubblici
getAbi
public IAbi getAbi ()
run
public void run (RunNotifier notifier)
| Parametri |
notifier |
RunNotifier |
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
| Parametri |
testInformation |
TestInformation |
Metodi protetti
createTest
protected Object createTest ()
Eseguiamo l'override di 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 2026-06-22 UTC.
[null,null,["Ultimo aggiornamento 2026-06-22 UTC."],[],[]]