自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
com.android.tradefed.testtype.junit4
注释
类
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# com.android.tradefed.testtype.junit4\n====================================\n\nAnnotations\n-----------\n\n|------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AfterClassWithInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/AfterClassWithInfo.html) | Similar guarantees as [AfterClass](../../../../../../../reference/tradefed/org/junit/AfterClass.html) but method annotated must require a [TestInformation](../../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html) parameter. |\n| [BeforeClassWithInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/BeforeClassWithInfo.html) | Similar guarantees as [BeforeClass](../../../../../../../reference/tradefed/org/junit/BeforeClass.html) but method annotated must require a [TestInformation](../../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html) parameter. |\n\nClasses\n-------\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BaseHostJUnit4Test](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/BaseHostJUnit4Test.html) | Base test class for running host JUnit4 style tests. |\n| [CarryDnaeError](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/CarryDnaeError.html) | Internal [RuntimeException](../../../../../../../reference/tradefed/java/lang/RuntimeException.html) to carry [DeviceNotAvailableException](../../../../../../../reference/tradefed/com/android/tradefed/device/DeviceNotAvailableException.html) through the JUnit4 framework. |\n| [CarryInterruptedException](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/CarryInterruptedException.html) | Thrown when test phase timeout is triggered and an InterruptedException needs to be carried from test execution thread to invocation execution thread. |\n| [DeviceParameterizedRunner](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/DeviceParameterizedRunner.html) | JUnit4 style parameterized runner for host-side driven parameterized tests. |\n| [DeviceTestRunOptions](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/DeviceTestRunOptions.html) | A builder class for options related to running device tests through BaseHostJUnit4Test. |\n| [ExceptionThrowingRunnerWrapper](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/ExceptionThrowingRunnerWrapper.html) | |\n| [JUnit4ResultForwarder](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/JUnit4ResultForwarder.html) | Result forwarder from JUnit4 Runner. |\n| [RunAftersWithInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/RunAftersWithInfo.html) | |\n| [RunBeforesWithInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/RunBeforesWithInfo.html) | |\n| [RunNotifierWrapper](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/RunNotifierWrapper.html) | Wrapper of [RunNotifier](../../../../../../../reference/tradefed/org/junit/runner/notification/RunNotifier.html) so we can carry the [DeviceNotAvailableException](../../../../../../../reference/tradefed/com/android/tradefed/device/DeviceNotAvailableException.html). |\n\n-\n\n Annotations\n -----------\n\n - [AfterClassWithInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/AfterClassWithInfo.html)\n - [BeforeClassWithInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/BeforeClassWithInfo.html)\n-\n\n Classes\n -------\n\n - [BaseHostJUnit4Test](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/BaseHostJUnit4Test.html)\n - [CarryDnaeError](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/CarryDnaeError.html)\n - [CarryInterruptedException](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/CarryInterruptedException.html)\n - [DeviceParameterizedRunner](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/DeviceParameterizedRunner.html)\n - [DeviceTestRunOptions](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/DeviceTestRunOptions.html)\n - [ExceptionThrowingRunnerWrapper](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/ExceptionThrowingRunnerWrapper.html)\n - [JUnit4ResultForwarder](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/JUnit4ResultForwarder.html)\n - [RunAftersWithInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/RunAftersWithInfo.html)\n - [RunBeforesWithInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/RunBeforesWithInfo.html)\n - [RunNotifierWrapper](../../../../../../../reference/tradefed/com/android/tradefed/testtype/junit4/RunNotifierWrapper.html)"]]