@Test public void testFindAll() throws Exception { log.warn("------------------------------------------------------------------"); log.warn( "started ParkingEmployeeAndSpace test: a single parking space and single employee through import"); Collection<ParkingEmployee> allEmployees = empDao.findAll(); assertEquals(1, allEmployees.size()); Collection<ParkingSpace> allSpaces = parkDao.findAll(); assertEquals(1, allSpaces.size()); }
// verifying that the relation and the traversal from the owned to the // owning side works @Test public void testGettingEmployeeFromParking() { List<ParkingSpace> allSpaces = parkDao.findAll(); ParkingSpace d = allSpaces.get(0); assertNotNull(d.getEmployee()); }
// verifying that the relation and the traversal from the owning to the // owned side works @Test public void testGettingParkingFromEmployee() { List<ParkingEmployee> allEmployees = empDao.findAll(); ParkingEmployee e = allEmployees.get(0); assertNotNull(e.getParking()); }
@Test public void testFindAll() throws Exception { log.warn("------------------------------------------------------------------"); log.warn("started findAll test"); Collection<Employee> allEmployees = dao.findAll(); log.info("found {} employees", allEmployees.size()); for (Employee e : allEmployees) { log.info("found employee: {}", e); } }
@Override public int getRowCount() { items = DAO.findAll(); return items.size(); }