Android Studio Sign in

UiThreadTest


@Target(value = [ElementType.METHODElementType.TYPE])
@Retention(value = RetentionPolicy.RUNTIME)
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.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.