DeviceJUnit4ClassRunner
public class DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver
java.lang.객체 | ||||
↳ | org.junit.runner.러너 | |||
↳ | org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod> | |||
↳ | org.junit.runners.BlockJUnit4ClassRunner | |||
↳ | com.android.tradefed.testtype.DeviceJUnit4ClassRunner |
IDeviceTest
도 수용하는 JUnit4 테스트 러너. RunWith 주석이 있는 JUnit4 테스트 위에 지정해야 합니다.
요약
중첩 클래스 | |
---|---|
class | DeviceJUnit4ClassRunner.LogAnnotation 기자에게 로그를 전달하기 위한 가짜 주석. |
class | DeviceJUnit4ClassRunner.MetricAnnotation 리포터에게 메트릭을 전달하기 위한 가짜 주석입니다. |
class | DeviceJUnit4ClassRunner.TestLogData |
class | DeviceJUnit4ClassRunner.TestMetrics |
공개 생성자 | |
---|---|
DeviceJUnit4ClassRunner (Class<?> klass) |
공개 방법 | |
---|---|
IAbi | getAbi () |
TestInformation | getTestInformation () |
void | run (RunNotifier notifier) |
void | setAbi ( IAbi abi) |
void | setTestInformation ( TestInformation testInformation) |
보호된 메서드 | |
---|---|
Object | createTest () 디바이스를 설정하기 위해 createTest를 재정의합니다. |
void | runChild (FrameworkMethod method, RunNotifier notifier) |
Statement | withAfterClasses (Statement statement) |
Statement | withBeforeClasses (Statement statement) |
공개 생성자
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
매개변수 | |
---|---|
klass | Class |
던지기 | |
---|---|
InitializationError |
공개 방법
달리다
public void run (RunNotifier notifier)
매개변수 | |
---|---|
notifier | RunNotifier |
setTestInformation
public void setTestInformation (TestInformation testInformation)
매개변수 | |
---|---|
testInformation | TestInformation |
보호된 메서드
createTest
protected Object createTest ()
디바이스를 설정하기 위해 createTest를 재정의합니다.
보고 | |
---|---|
Object |
runChild
protected void runChild (FrameworkMethod method, RunNotifier notifier)
매개변수 | |
---|---|
method | FrameworkMethod |
notifier | RunNotifier |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
매개변수 | |
---|---|
statement | Statement |
보고 | |
---|---|
Statement |
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
매개변수 | |
---|---|
statement | Statement |
보고 | |
---|---|
Statement |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-04-28(UTC)
[]
[]