Ejemplo n.º 1
0
 /** tests the getPodcastById functionality */
 public void testGetPodcastById() {
   PodcastDAOImpl pdao = PodcastDAOImpl.i(this.mContext);
   p1.setTitle("expected title");
   p1 = pdao.insertPodcast(p1);
   Podcast pod = pdao.getPodcastById(p1.getId());
   assertEquals("expected title", pod.getTitle());
   assertEquals(p1.getLastUpdate(), pod.getLastUpdate());
   assertEquals(p1.hashCode(), pod.hashCode());
 }
Ejemplo n.º 2
0
  private Podcast insertPodcast() {
    Podcast p = new Podcast();
    uuid = java.util.UUID.randomUUID().toString();
    p.setTitle(uuid);
    p.setLocalAdd(true);

    assertTrue(dao.insertPodcast(p) != null);

    return p;
  }
Ejemplo n.º 3
0
 @Override
 protected void setUp() throws Exception {
   p1 = new Podcast();
   p1.setDescription("description");
   p1.setLastUpdate(111);
   p1.setLogoFilePath("logoFilePath");
   p1.setLogoUrl("logoUrl");
   p1.setTitle("title");
   p1.setUrl("url");
   super.setUp();
 }