This class is deprecated.
use UiThreadTest directly without this rule. UiThreadTest is now
supported as part of the core Android test runner to provide the ability to run methods
annotated with @Before and @After on the UI thread regardless of
what @Test is annotated with.
This rule allows the test method annotated with UiThreadTest to execute on the
application's main thread (or UI thread).
Note, methods annotated with Before and After will also
be executed on the UI thread.
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.