DeployStatusDAO { public List<DeployStatus> list(Integer pageNum, Integer numResults) { Session session = sessionFactory.openSession(); session.beginTransaction(); Criteria criteria = session.createCriteria(DeployStatus.class); criteria.setFirstResult(pageNum); criteria.setMaxResults(numResults); List<DeployStatus> deployStatuses = criteria.list(); session.getTransaction().commit(); session.close(); return deployStatuses; }  List<DeployStatus> list(Integer pageNum, Integer numResults); Long totalRecordCount(); DeployStatus get(Short id); Short insert(DeployStatus deployStatus); void update(DeployStatus deployStatus); void delete(Short id);  }
@Ignore @Test public void testList() throws Exception { LOGGER.info("Size of DeployStatus is atleast:" + deployStatusDAO.list(0, 10).size()); }