use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Bar_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_ElseIsFalse.
@Test
public void onOptionsItemSelectedRatings_ElseIsFalse() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_Rating3AndUp);
assertFalse(barActivity.onOptionsItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Bar_NavDrawer_ActivityTest method onNavigationItemSelected_RatingsIsTrue.
@Test
public void onNavigationItemSelected_RatingsIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_Rating3AndUp);
assertTrue(barActivity.onNavigationItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Cafe_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_ElseIsFalse.
@Test
public void onOptionsItemSelectedRatings_ElseIsFalse() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_Rating3AndUp);
assertFalse(cafeActivity.onOptionsItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Cafe_NavDrawer_ActivityTest method onNavigationItemSelected_MilesIsTrue.
@Test
public void onNavigationItemSelected_MilesIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_OneMile);
assertTrue(cafeActivity.onNavigationItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Cafe_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_AscIsTrue.
@Test
public void onOptionsItemSelectedRatings_AscIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.ratings_asc);
assertTrue(cafeActivity.onOptionsItemSelected(menuItem));
}
Aggregations