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