Annotation Type LooperMode


@Documented @Retention(RUNTIME) @Target({PACKAGE,TYPE,METHOD}) public @interface LooperMode
A Configurer annotation for controlling Robolectric's Looper behavior.

Currently Robolectric will default to LooperMode.Mode.PAUSED 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.

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Specifies the different supported Looper modes.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Set the Looper mode.