use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Cafe_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_DescIsTrue.
@Test
public void onOptionsItemSelectedRatings_DescIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.ratings_desc);
assertTrue(cafeActivity.onOptionsItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Emergency_NavDrawer_ActivityTest method onNavigationItemSelected_MilesIsTrue.
@Test
public void onNavigationItemSelected_MilesIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_OneMile);
assertTrue(EmergencyActivity.onNavigationItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class Emergency_NavDrawer_ActivityTest method onOptionsItemSelectedRatings_DescIsTrue.
@Test
public void onOptionsItemSelectedRatings_DescIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.ratings_desc);
assertTrue(EmergencyActivity.onOptionsItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class GasStation_NavDrawer_ActivityTest method onNavigationItemSelected_MilesIsTrue.
@Test
public void onNavigationItemSelected_MilesIsTrue() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.nav_OneMile);
assertTrue(GasStationActivity.onNavigationItemSelected(menuItem));
}
use of org.robolectric.fakes.RoboMenuItem in project Detours-Android by TeamDetours.
the class GasStation_NavDrawer_ActivityTest method onNavigationItemSelected_ElseIsFalse.
@Test
public void onNavigationItemSelected_ElseIsFalse() throws Exception {
MenuItem menuItem = new RoboMenuItem(R.id.ratings_asc);
assertFalse(GasStationActivity.onNavigationItemSelected(menuItem));
}
Aggregations