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

  • Required Element Summary

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