DeviceJUnit4ClassRunner
public class DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver
java.lang.Object | ||||
↳ | 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 |
AfterClasses로
protected Statement withAfterClasses (Statement statement)
매개변수 | |
---|---|
statement | Statement |
보고 | |
---|---|
Statement |
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
매개변수 | |
---|---|
statement | Statement |
보고 | |
---|---|
Statement |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-12-01(UTC)
[]
[]