Annotation Type LazyApplication


@Retention(RUNTIME) @Target({PACKAGE,TYPE,METHOD}) public @interface LazyApplication
A Configurer annotation that dictates whether or not Robolectric should lazily instantiate the Application under test.

In particular, any test with LazyLoad.ON that does not need the Application will not load it (and recoup the associated cost)

NOTE: This feature is currently still experimental, so any users of LazyLoad.ON do so at their own risk

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Whether or not the Application should be lazily loaded
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Whether or not the Application should be lazily loaded