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 |
IDeviceTest
de barındıran JUnit4 test çalıştırıcısı. JUnit4 Test üzerinde bir RunWith notu ile belirtilmelidir.
Özet
İç içe sınıflar |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation Sahte ek açıklama, günlükleri muhabirlere taşımayı amaçlıyordu. |
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
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
Genel yöntemler
alAbi
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
test oluştur
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 |
withSınıflardan Sonra
protected Statement withAfterClasses (Statement statement)
parametreler |
---|
statement | Statement |
ileSınıflardanÖnce
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: 2023-04-28 UTC.
[]
[]