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