Annotation Type LazyApplication
-
@Retention(RUNTIME) @Target({PACKAGE,TYPE,METHOD}) public @interface LazyApplication
AConfigurerannotation that dictates whether or not Robolectric should lazily instantiate the Application under test.In particular, any test with
LazyLoad.ONthat 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.ONdo so at their own risk
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description LazyApplication.LazyLoadvalueWhether or not the Application should be lazily loaded
-
-
-
Element Detail
-
value
LazyApplication.LazyLoad value
Whether or not the Application should be lazily loaded
-
-