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