@Test @Transactional public void testRemoveWorkReportLine() throws InstanceNotFoundException { WorkReportLine workReportLine = createValidWorkReportLine(); workReportLineDAO.save(workReportLine); workReportLine.getWorkReport().removeWorkReportLine(workReportLine); workReportLineDAO.remove(workReportLine.getId()); assertFalse(workReportLineDAO.exists(workReportLine.getId())); }
@Test @Transactional public void testSaveWorkReportLine() { WorkReportLine workReportLine = createValidWorkReportLine(); workReportLineDAO.save(workReportLine); assertTrue(workReportLineDAO.exists(workReportLine.getId())); }