Пример #1
0
  /**
   * After deleting the newly added podcast, it should not be displayed in the podcast list, and
   * should not be contained in the podcast DAO.
   */
  public void testRemovePodcast() {
    Podcast p = insertPodcast();

    while (solo.scrollDown()) ;

    solo.clickLongOnText(uuid);
    solo.clickOnText(getActivity().getString(at.ac.tuwien.detlef.R.string.delete_feed));

    assertFalse(
        String.format("Deleted podcast %s should not be displayed in list", uuid),
        solo.searchText(uuid));
    assertFalse(
        String.format("Deleted podcast %s should not be in DAO", uuid),
        dao.getPodcastById(p.getId()) != null);
  }
Пример #2
0
 private void clickOnContextMenuItem(String lookName, String menuItemName) {
   solo.clickLongOnText(lookName);
   solo.waitForText(menuItemName);
   solo.clickOnText(menuItemName);
 }