@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@Target(value = [java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.TYPE])
public annotation UiThreadTest

Classes and methods annotated with this annotation will be executed on the application's UI thread (or main thread).

This annotation will only take effect for org.junit.Test, org.junit.Before or org.junit.After methods.

Use runOnMainSync if you need to switch in and out of the UI thread within your method.