Searched refs:mockActivity (Results 1 – 2 of 2) sorted by relevance
51 final Activity mockActivity = mock(Activity.class); in testOnChoose_CallsStartActivityAsCallerWithToken() local52 when(mockActivity.getIntent()).thenReturn(intent); in testOnChoose_CallsStartActivityAsCallerWithToken()54 ChooserHelper.onChoose(mockActivity); in testOnChoose_CallsStartActivityAsCallerWithToken()55 verify(mockActivity, times(1)).startActivityAsCaller( in testOnChoose_CallsStartActivityAsCallerWithToken()
318 var mockActivity: ParsedActivity? = null in <lambda>() variable323 mockActivity = mock<ParsedActivity> { in <lambda>()337 whenever(this.componentExists(same(it))) { mockActivity != null } in <lambda>()338 whenever(this.getActivity(same(it))) { mockActivity } in <lambda>()