use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Restaurant_NavDrawer_ActivityTest method onNavigationItemSelected_PriceIsTrue.
@Test
public void onNavigationItemSelected_PriceIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_PriceLVL4);
assertTrue(restaurantActivity.onNavigationItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Emergency_NavDrawer_ActivityTest method onNavigationItemSelected_PriceIsTrue.
@Test
public void onNavigationItemSelected_PriceIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_PriceLVL4);
assertTrue(EmergencyActivity.onNavigationItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Emergency_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_AscIsTrue.
@Test
public void onOptionsItemSelectedRatings_AscIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.ratings_asc);
assertTrue(EmergencyActivity.onOptionsItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Emergency_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_ElseIsFalse.
@Test
public void onOptionsItemSelectedRatings_ElseIsFalse() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_Rating3AndUp);
assertFalse(EmergencyActivity.onOptionsItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Emergency_NavDrawer_ActivityTest method onNavigationItemSelected_ElseIsFalse.
@Test
public void onNavigationItemSelected_ElseIsFalse() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.ratings_asc);
assertFalse(EmergencyActivity.onNavigationItemSelected(menuItem));
}
Aggregations