Package com.gnizr.db.dao.bookmark

Examples of com.gnizr.db.dao.bookmark.BookmarkDao


 
  public void testExpandTag() throws Exception{
    List<FolderTag> folderTags = null;
    FolderTag t1, t2, t3;
   
    BookmarkDao bmarkDao = new BookmarkDBDao(getDataSource());
    Bookmark bm = bmarkDao.getBookmark(1);
    List<String> tags = bm.getTagList();
    assertTrue(tags.contains("cnn"));
    assertTrue(tags.contains("news"));
   
    Tag cnnTag = tagDao.getTag(1);
View Full Code Here


  private int totalResult = -1;
  private String searchDescriptionUrl = "http://foo.com/gnizr/search-description.xml";
 
  protected void setUp() throws Exception {
    super.setUp();
    BookmarkDao bmarkDao = getGnizrDao().getBookmarkDao();
    DaoResult<Bookmark> result = bmarkDao.pageBookmarks(new User(1),0,10);   
    bmarks = result.getResult();
    assertFalse(bmarks.isEmpty());
    totalResult = result.getSize();
  }
View Full Code Here

    gBookmark.setLink(new Link("http://www.umbc.edu"));
    gBookmark.setTitle("UMBC");
    gBookmark.setNotes("UMBC homepage");   
    int id = manager.addBookmark(gBookmark);
    assertTrue(id > 0);
    BookmarkDao bookmarkDao = getGnizrDao().getBookmarkDao();   
   
    GnizrDaoUtil.fillObject(bookmarkDao,userDao,linkDao,gBookmark);
    // ensure we can delete and add the same bookmark
    assertTrue(manager.deleteBookmark(gBookmark));
    assertTrue((manager.addBookmark(gBookmark)>0));
View Full Code Here

TOP

Related Classes of com.gnizr.db.dao.bookmark.BookmarkDao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.