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.
[{
"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"
}]