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 ExternalResource 및 TestRule 구현. |
class | DeviceJUnit4ClassRunner.TestMetrics ExternalResource 및 TestRule 구현. |
공개 생성자
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
공개 방법
getAbi
public IAbi getAbi ()
달리다
public void run (RunNotifier notifier)
매개변수 |
---|
notifier | RunNotifier |
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
매개변수 |
---|
testInformation | TestInformation |
보호된 메서드
createTest
protected Object createTest ()
디바이스를 설정하기 위해 createTest를 재정의합니다.
runChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
매개변수 |
---|
method | FrameworkMethod |
notifier | RunNotifier |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-04-28(UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]