@Documented @Retention(value=RUNTIME) @Target(value={PACKAGE,TYPE,METHOD}) public @interface LooperMode
A Configurer
annotation for controlling Robolectric’s Looper
behavior.
Currently Robolectric will default to LooperMode.LEGACY behavior, but this can be overridden by applying a @LooperMode(NewMode) annotation to a test package, test class, or test method, or via the ‘robolectric.looperMode’ system property.
LooperModeConfigurer, Scheduler, ShadowLooper
Modifier and Type | Required Element and Description |
---|---|
LooperMode.Mode |
value
Set the Looper mode.
|
public abstract LooperMode.Mode value
Set the Looper mode.