UrządzenieJUnit4ClassRunner
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 |
Program uruchamiający testy JUnit4, który obsługuje również IDeviceTest
. Należy określić powyżej Test JUnit4 z adnotacją RunWith.
Streszczenie
Klasy zagnieżdżone |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation Fałszywa adnotacja, która miała przekazywać reporterom dzienniki. |
class | DeviceJUnit4ClassRunner.MetricAnnotation Fałszywa adnotacja, która ma przekazywać reporterom dane. |
class | DeviceJUnit4ClassRunner.TestLogData Implementacja ExternalResource i TestRule . |
class | DeviceJUnit4ClassRunner.TestMetrics Implementacja ExternalResource i TestRule . |
Konstruktorzy publiczni
UrządzenieJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
Rzuty |
---|
InitializationError | |
Metody publiczne
getAbi
public IAbi getAbi ()
biegać
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órz test
protected Object createTest ()
Nadpisujemy createTest w celu ustawienia urządzenia.
runDziecko
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
Parametry |
---|
method | FrameworkMethod |
notifier | RunNotifier |
zPoZajęciach
protected Statement withAfterClasses (Statement statement)
Parametry |
---|
statement | Statement |
zPrzedZaję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.
Last updated 2022-08-15 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"
}]