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