Home
last modified time | relevance | path

Searched refs:myActivity (Results 1 – 3 of 3) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DActivityControllerTest.java88 MyActivity myActivity = controller.create().get(); in shouldSetIntent() local
89 assertThat(myActivity.getIntent()).isNotNull(); in shouldSetIntent()
90 assertThat(myActivity.getIntent().getComponent()).isEqualTo(componentName); in shouldSetIntent()
95 …MyActivity myActivity = Robolectric.buildActivity(MyActivity.class, new Intent(Intent.ACTION_VIEW)… in shouldSetIntentComponentWithCustomIntentWithoutComponentSet() local
96 assertThat(myActivity.getIntent().getAction()).isEqualTo(Intent.ACTION_VIEW); in shouldSetIntentComponentWithCustomIntentWithoutComponentSet()
97 assertThat(myActivity.getIntent().getComponent()).isEqualTo(componentName); in shouldSetIntentComponentWithCustomIntentWithoutComponentSet()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowViewTest.java365 MyActivity myActivity = buildActivity(MyActivity.class).create().get(); in shouldCallOnClickWithAttribute() local
371 view = new View(myActivity, attrs); in shouldCallOnClickWithAttribute()
373 assertTrue("Should have been called", myActivity.called); in shouldCallOnClickWithAttribute()
378 MyActivity myActivity = buildActivity(MyActivity.class).create().get(); in shouldThrowExceptionWithBadMethodName() local
384 view = new View(myActivity, attrs); in shouldThrowExceptionWithBadMethodName()
DShadowActivityTest.java776 …ActionBarThemedActivity myActivity = Robolectric.buildActivity(ActionBarThemedActivity.class).crea… in getActionBar_shouldWorkIfActivityHasAnAppropriateTheme() local
777 ActionBar actionBar = myActivity.getActionBar(); in getActionBar_shouldWorkIfActivityHasAnAppropriateTheme()