CihazJUnit4ClassRunner
public class DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver
java.lang.Nesne |
↳ | org.junit.runner.Runner |
| ↳ | org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod> |
| | ↳ | org.junit.runners.BlockJUnit4ClassRunner |
| | | ↳ | com.android.tradefed.testtype.DeviceJUnit4ClassRunner |
IDeviceTest'i de barındıran IDeviceTest
test çalıştırıcısı. JUnit4 Testi üzerinde RunWith ek açıklamasıyla belirtilmelidir.
Özet
iç içe sınıflar |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation Günlükleri muhabirlere taşımak için sahte açıklama. |
class | DeviceJUnit4ClassRunner.MetricAnnotation Sahte ek açıklama, ölçümleri muhabirlere taşımayı amaçlıyordu. |
class | DeviceJUnit4ClassRunner.TestLogData ExternalResource ve TestRule uygulanması. |
class | DeviceJUnit4ClassRunner.TestMetrics ExternalResource ve TestRule uygulanması. |
Kamu inşaatçıları
CihazJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
Genel yöntemler
getAbi
public IAbi getAbi ()
koşmak
public void run (RunNotifier notifier)
parametreler |
---|
notifier | RunNotifier |
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
parametreler |
---|
testInformation | TestInformation |
Korumalı yöntemler
oluşturTest
protected Object createTest ()
Cihazı ayarlamak için createTest'i geçersiz kılıyoruz.
runChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
parametreler |
---|
method | FrameworkMethod |
notifier | RunNotifier |
ileAfterClasses
protected Statement withAfterClasses (Statement statement)
parametreler |
---|
statement | Statement |
ileÖnceSınıflar
protected Statement withBeforeClasses (Statement statement)
parametreler |
---|
statement | Statement |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2022-08-15 UTC.
[]
[]