use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Parks_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_AscIsTrue.
@Test
public void onOptionsItemSelectedRatings_AscIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.ratings_asc);
assertTrue(parksActivity.onOptionsItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Profile_ActivityTest method onOptionsItemSelectedTest.
@Test
public void onOptionsItemSelectedTest() {
MenuItem item = new RoboMenuItem(R.id.action_settings);
assertTrue(profileActivity.onOptionsItemSelected(item));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Profile_ActivityTest method onNavigationItemSelectedTest.
@Test
public void onNavigationItemSelectedTest() {
MenuItem item = new RoboMenuItem(R.id.action_settings);
assertTrue(profileActivity.onNavigationItemSelected(item));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Restaurant_NavDrawer_ActivityTest method onNavigationItemSelected_MilesIsTrue.
@Test
public void onNavigationItemSelected_MilesIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_OneMile);
assertTrue(restaurantActivity.onNavigationItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Restaurant_NavDrawer_ActivityTest method onNavigationItemSelected_ElseIsFalse.
@Test
public void onNavigationItemSelected_ElseIsFalse() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.ratings_asc);
assertFalse(restaurantActivity.onNavigationItemSelected(menuItem));
}
Aggregations