Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 @Override
 public void scroll() {
   String hql = "WHERE status = 'running'";
   Iterator<FileScanner> it = dao.scroll(hql, -1, -1).iterator();
   assertTrue(CheckIterator.checkElementNumber(it, 2));
 }