UiThreadTest
@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) classUiThreadTest
android.test.UiThreadTest |
This annotation can be used on an InstrumentationTestCase
's test methods. When the annotation is present, the test method is executed on the application's main thread (or UI thread.) Note that instrumentation methods may not be used when this annotation is present.
Summary
Public constructors | |
---|---|
This annotation can be used on an |
Public constructors
UiThreadTest
UiThreadTest()
Deprecated: Use UiThreadTest instead. New tests should be written using the Android Testing Support Library.
This annotation can be used on an InstrumentationTestCase
's test methods. When the annotation is present, the test method is executed on the application's main thread (or UI thread.) Note that instrumentation methods may not be used when this annotation is present.