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