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 Testinin üzerinde RunWith ek açıklamasıyla belirtilmelidir.
Özet
İç içe geçmiş sınıflar |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation Sahte açıklama, günlükleri muhabirlere taşımayı amaçlıyordu. |
class | DeviceJUnit4ClassRunner.MetricAnnotation Sahte 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
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
test oluştur
protected Object createTest ()
Cihazı ayarlamak için createTest'i geçersiz kılıyoruz.
koşÇocuk
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
Parametreler |
---|
method | FrameworkMethod |
notifier | RunNotifier |
AfterClasses ile
protected Statement withAfterClasses (Statement statement)
Parametreler |
---|
statement | Statement |
withBeforeClasses
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-12-01 UTC.
[]
[]