Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
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
|
Uruchamiający testy JUnit4 obsługujący także IDeviceTest
. Wartość powinna być określona powyżej JUnit4
Testowanie za pomocą adnotacji RunWith.
Podsumowanie
Metody chronione |
Object
|
createTest()
Zastępujemy instrukcję createTest, aby skonfigurować urządzenie.
|
void
|
runChild(FrameworkMethod method, RunNotifier notifier)
|
Statement
|
withAfterClasses(Statement statement)
|
Statement
|
withBeforeClasses(Statement statement)
|
Konstruktory publiczne
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
Rzuty |
InitializationError |
|
Metody publiczne
getAbi
public IAbi getAbi ()
home run
public void run (RunNotifier notifier)
Parametry |
notifier |
RunNotifier |
SetAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
Parametry |
testInformation |
TestInformation |
Metody chronione
utwórzTest
protected Object createTest ()
Zastępujemy instrukcję createTest, aby skonfigurować urządzenie.
RunChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
Parametry |
method |
FrameworkMethod |
notifier |
RunNotifier |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
Parametry |
statement |
Statement |
withPrzedklasami
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: 2024-08-29 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-08-29 UTC."],[],[]]