Searched refs:mockMenuItem (Results 1 – 2 of 2) sorted by relevance
220 MenuItem mockMenuItem = mock(MenuItem.class); in testOnContextItemSelectedDelete() local221 doReturn(MENU_DELETE).when(mockMenuItem).getItemId(); in testOnContextItemSelectedDelete()226 activity.mListFragment.onContextItemSelected(mockMenuItem); in testOnContextItemSelectedDelete()249 MenuItem mockMenuItem = mock(MenuItem.class); in testOnContextItemSelectedViewDetails() local250 doReturn(MENU_VIEW_DETAILS).when(mockMenuItem).getItemId(); in testOnContextItemSelectedViewDetails()256 activity.mListFragment.onContextItemSelected(mockMenuItem); in testOnContextItemSelectedViewDetails()298 MenuItem mockMenuItem = mock(MenuItem.class); in testOnOptionsItemSelected() local299 doReturn(android.R.id.home).when(mockMenuItem).getItemId(); in testOnOptionsItemSelected()302 assertTrue(activity.onOptionsItemSelected(mockMenuItem)); in testOnOptionsItemSelected()310 MenuItem mockMenuItem = mock(MenuItem.class); in testFragmentOnOptionsItemSelected() local[all …]
46 final TestMenuItem mockMenuItem = Mockito.mock(TestMenuItem.class, in create() local50 mockMenuItem.enabled = true; in create()51 mockMenuItem.visible = true; in create()53 return mockMenuItem; in create()