예제 #1
0
 @Override
 public void scroll() {
   String hql = "WHERE processed IS TRUE";
   Iterator<Product> it = dao.scroll(hql, -1, -1).iterator();
   Assert.assertTrue(CheckIterator.checkElementNumber(it, 4));
 }
 @Override
 public void scroll() {
   String hql = "WHERE status = 'running'";
   Iterator<FileScanner> it = dao.scroll(hql, -1, -1).iterator();
   assertTrue(CheckIterator.checkElementNumber(it, 2));
 }