use of org.robolectric.Robolectric.setupActivity in project robolectric by robolectric.
the class ShadowActivityTest method shouldSupportIsTaskRoot.
@Test
public void shouldSupportIsTaskRoot() throws Exception {
Activity activity = Robolectric.setupActivity(Activity.class);
// as implemented, Activities are considered task roots by default
assertTrue(activity.isTaskRoot());
shadowOf(activity).setIsTaskRoot(false);
assertFalse(activity.isTaskRoot());
}
Aggregations