assertFalse(folderDao.hasFolderTag(new Folder(id),new Tag(1)));
assertFalse(folderDao.hasFolderTag(new Folder(id),new Tag(3)));
List<Bookmark> bmarks = new ArrayList<Bookmark>();
bmarks.add(new Bookmark(300));
boolean[] opOkay = folderDao.addBookmarks(new Folder(id),bmarks,now);
for(boolean b: opOkay){
assertTrue(b);
}
assertTrue(folderDao.hasFolderTag(new Folder(id),new Tag(1)));
assertTrue(folderDao.hasFolderTag(new Folder(id),new Tag(3)));
List<FolderTag> folderTags = folderDao.findTagsInFolder(new Folder(id),1,FolderDao.SORT_BY_ALPHA,FolderDao.ASCENDING);
assertEquals(2,folderTags.size());
assertEquals(1,folderTags.get(0).getCount());
assertEquals(1,folderTags.get(1).getCount());
bmarks = new ArrayList<Bookmark>();
bmarks.add(new Bookmark(300)); // add again shouldn't affect the count
bmarks.add(new Bookmark(301));
opOkay = folderDao.addBookmarks(new Folder(id),bmarks,now);
for(boolean b: opOkay){
assertTrue(b);
}