コード例 #1
0
  @Test
  public void testHasSettingsType() throws Exception {
    menuService.onHandleIntent(null);

    for (MenuItem item : menuService.getMenuItems()) {
      if ("settings".equals(item.getType())) {
        return;
      }
    }
  }
コード例 #2
0
  @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.");
  }