@Test public void testHasSettingsType() throws Exception { menuService.onHandleIntent(null); for (MenuItem item : menuService.getMenuItems()) { if ("settings".equals(item.getType())) { return; } } }
@Test public void testHasMovieType() throws Exception { menuService.onHandleIntent(null); for (MenuItem item : menuService.getMenuItems()) { if ("movie".equals(item.getType())) { return; } } fail("No movies were found."); }