UrządzenieJUnit4ClassRunner
public class DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver
Obiekt 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 |
Narzędzie testowe JUnit4, które obsługuje również IDeviceTest
. Należy określić powyżej testu JUnit4 z adnotacją RunWith.
Streszczenie
Zagnieżdżone klasy |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation Fałszywa adnotacja mająca na celu przekazanie dzienników reporterom. |
class | DeviceJUnit4ClassRunner.MetricAnnotation Fałszywa adnotacja mająca na celu przekazanie reporterom danych. |
class | DeviceJUnit4ClassRunner.TestLogData Implementacja ExternalResource i TestRule . |
class | DeviceJUnit4ClassRunner.TestMetrics Implementacja ExternalResource i TestRule . |
Metody chronione |
---|
Object | createTest () Zastępujemy metodę createTest w celu ustawienia urządzenia. |
void | runChild (FrameworkMethod method, RunNotifier notifier) |
Statement | withAfterClasses (Statement statement) |
Statement | withBeforeClasses (Statement statement) |
Konstruktorzy publiczni
UrządzenieJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
Rzuca |
---|
InitializationError | |
Metody publiczne
weźAbi
public IAbi getAbi ()
uruchomić
public void run (RunNotifier notifier)
Parametry |
---|
notifier | RunNotifier |
ustawAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
Parametry |
---|
testInformation | TestInformation |
Metody chronione
utwórzTest
protected Object createTest ()
Zastępujemy metodę createTest w celu ustawienia urządzenia.
biegnijDziecko
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
Parametry |
---|
method | FrameworkMethod |
notifier | RunNotifier |
z zajęciami po zajęciach
protected Statement withAfterClasses (Statement statement)
Parametry |
---|
statement | Statement |
zPrzed zajęciami
protected Statement withBeforeClasses (Statement statement)
Parametry |
---|
statement | Statement |
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-12-01 UTC.
[]
[]