use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Cafe_NavDrawer_ActivityTest method onNavigationItemSelected_PriceIsTrue.
@Test
public void onNavigationItemSelected_PriceIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_PriceLVL4);
assertTrue(cafeActivity.onNavigationItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Movie_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_ElseIsFalse.
@Test
public void onOptionsItemSelectedRatings_ElseIsFalse() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_Rating3AndUp);
assertFalse(movieActivity.onOptionsItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Movie_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_DescIsTrue.
@Test
public void onOptionsItemSelectedRatings_DescIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.ratings_desc);
assertTrue(movieActivity.onOptionsItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Movie_NavDrawer_ActivityTest method onNavigationItemSelected_RatingsIsTrue.
@Test
public void onNavigationItemSelected_RatingsIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_Rating3AndUp);
assertTrue(movieActivity.onNavigationItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Parks_NavDrawer_ActivityTest method onNavigationItemSelected_RatingsIsTrue.
@Test
public void onNavigationItemSelected_RatingsIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_Rating3AndUp);
assertTrue(parksActivity.onNavigationItemSelected(menuItem));
}
Aggregations