DeviceJUnit4ClassRunner
public class DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver
org.junit.runners.BlockJUnit4ClassRunner |
↳ | com.android.tradefed.testtype.DeviceJUnit4ClassRunner |
Biegacz testowy JUnit4, który obsługuje również IDeviceTest
. Powinien być określony powyżej testu JUnit4 z adnotacją RunWith.
Streszczenie
Klasy zagnieżdżone |
---|
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 danych reporterom. |
class | DeviceJUnit4ClassRunner.TestLogData Implementacja ExternalResource i TestRule . |
class | DeviceJUnit4ClassRunner.TestMetrics Implementacja ExternalResource i TestRule . |
Konstruktory publiczne
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
Rzuty |
---|
InitializationError | |
Metody publiczne
dostaćAbi
public IAbi getAbi ()
uruchomić
public void run (RunNotifier notifier)
Parametry |
---|
notifier | RunNotifier |
ustaw Abi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
Parametry |
---|
testInformation | TestInformation |
Metody chronione
utwórzTest
protected Object createTest ()
Zastępujemy createTest, aby ustawić urządzenie.
biegnijDziecko
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
Parametry |
---|
method | FrameworkMethod |
notifier | RunNotifier |
zPoza zajęciami
protected Statement withAfterClasses (Statement statement)
Parametry |
---|
statement | Statement |
zBeforeClasses
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-03-30 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Brak potrzebnych mi informacji"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Zbyt skomplikowane / zbyt wiele czynności do wykonania"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Nieaktualne treści"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problem z tłumaczeniem"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problem z przykładami/kodem"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Inne"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Łatwo zrozumieć"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Rozwiązało to mój problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Inne"
}]