com.android.tradefed.testtype.junit4
注释
| AfterClassWithInfo |
与 AfterClass 类似的保证,但带注释的方法必须需要 TestInformation 参数。
|
| BeforeClassWithInfo |
与 BeforeClass 类似的保证,但带注释的方法必须需要 TestInformation 参数。
|
类
| BaseHostJUnit4Test | 用于运行主机 JUnit4 型测试的基本测试类。 |
| DeviceParameterizedRunner | 用于主机端驱动的参数化测试的 JUnit4 样式参数化运行程序。 |
| DeviceTestRunOptions | 一个用于构建与通过 BaseHostJUnit4Test 运行设备测试相关的选项的构建器类。 |
| ExceptionThrowingRunnerWrapper | |
| JUnit4ResultForwarder | 来自 JUnit4 运行程序的转发结果。 |
| RunAftersWithInfo | |
| RunBeforesWithInfo | |
| RunNotifierWrapper |
RunNotifier 的封装容器,以便我们可以携带 DeviceNotAvailableException。
|
例外情况
| CarryDnaeError |
内部 RuntimeException,用于通过 JUnit4 框架传递 DeviceNotAvailableException。
|
| CarryInterruptedException | 当测试阶段超时触发时抛出,并且需要将 InterruptedException 从测试作业线程传递到调用执行线程。 |