assertNotNull(bm.getUser().getUsername());
assertNotNull(bm.getLink().getUrl());
}
public void testPageBookmarksInFolder() throws Exception{
Bookmark bm299 = new Bookmark(299);
Bookmark bm300 = new Bookmark(300);
assertTrue(geomMarkerDao.addPointMarker(bm299,m1));
assertTrue(geomMarkerDao.addPointMarker(bm300,m2));
DaoResult<Bookmark> result = geomMarkerDao.pageBookmarksInFolder(new Folder(1),0,0);
assertEquals(1,result.getSize());
assertEquals(0,result.getResult().size());
result = geomMarkerDao.pageBookmarksInFolder(new Folder(1), 0, 10);
assertEquals(1,result.getSize());
assertEquals(1,result.getResult().size());
Bookmark bm = result.getResult().get(0);
assertEquals(300, bm.getId());
assertNotNull(bm.getUser().getUsername());
assertNotNull(bm.getLink().getUrl());
}