assertEquals("my new folder1 name", f1.getName());
assertTrue(before.before(f1.getLastUpdated()));
}
public void testPageBookmarks() throws Exception {
DaoResult<Bookmark> result = folderDao.pageBookmarks(new Folder(1), 0,
10);
assertNotNull(result);
assertEquals(3, result.getSize());
assertEquals(3, result.getResult().size());
List<Bookmark> bmarks = result.getResult();
assertEquals(303, bmarks.get(0).getId());
assertEquals(301, bmarks.get(1).getId());
assertEquals(300, bmarks.get(2).getId());
Bookmark bm303 = bmarks.get(0);
assertTrue(bm303.getFolderList().contains("my folder1"));
result = folderDao.pageBookmarks(new Folder(1), 1, 10);
assertNotNull(result);
assertEquals(3, result.getSize());
assertEquals(2, result.getResult().size());
result = folderDao.pageBookmarks(new Folder(1), 1, 1);
assertNotNull(result);
assertEquals(3, result.getSize());
assertEquals(1, result.getResult().size());
}