Searched refs:mockMenuItem (Results 1 – 2 of 2) sorted by relevance
213 MenuItem mockMenuItem = mock(MenuItem.class); in testOnContextItemSelectedDelete() local214 doReturn(MENU_DELETE).when(mockMenuItem).getItemId(); in testOnContextItemSelectedDelete()220 activity.mListFragment.onContextItemSelected(mockMenuItem); in testOnContextItemSelectedDelete()244 MenuItem mockMenuItem = mock(MenuItem.class); in testOnContextItemSelectedViewDetails() local245 doReturn(MENU_VIEW_DETAILS).when(mockMenuItem).getItemId(); in testOnContextItemSelectedViewDetails()251 activity.mListFragment.onContextItemSelected(mockMenuItem); in testOnContextItemSelectedViewDetails()293 MenuItem mockMenuItem = mock(MenuItem.class); in testOnOptionsItemSelected() local294 doReturn(android.R.id.home).when(mockMenuItem).getItemId(); in testOnOptionsItemSelected()297 assertTrue(activity.onOptionsItemSelected(mockMenuItem)); in testOnOptionsItemSelected()305 MenuItem mockMenuItem = mock(MenuItem.class); in testFragmentOnOptionsItemSelected() local[all …]
45 final TestMenuItem mockMenuItem = Mockito.mock(TestMenuItem.class, in create() local49 mockMenuItem.enabled = true; in create()50 mockMenuItem.visible = true; in create()52 return mockMenuItem; in create()