Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
com.android.tradefed.testtype.junit4
Annotations
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-07-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-07-19 UTC."],[],[],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)"]]