ProcessTypeDAO { public List<ProcessType> listFull(Integer pageNum, Integer numResults) { Session session = sessionFactory.openSession(); session.beginTransaction(); Criteria criteria = session.createCriteria(ProcessType.class); criteria.setFirstResult(pageNum); criteria.setMaxResults(numResults); List<ProcessType> processTypes = criteria.list(); session.getTransaction().commit(); session.close(); return processTypes; }  List<ProcessType> list(Integer processTypeId); List<ProcessType> listFull(Integer pageNum, Integer numResults); Integer totalRows(); Integer totalRecordCount(Integer processTypeId); ProcessType get(Integer id); Integer insert(ProcessType processType); void update(ProcessType processType); void delete(Integer id);  }
@Ignore @Test public void testListFull() throws Exception { LOGGER.info("Size of ProcessType is atleast:" + processTypeDAO.listFull(0, 10).size()); }