/** * Test if the DAO have no more {@link Maintenance} entities after the call of deleteAll() method */ @Test public void testDeleteAll() { maintenanceDAO.deleteAll(); assertEquals(0, maintenanceDAO.count()); }
/** * Clear the context * * @throws Exception */ @After public void tearDown() throws Exception { maintenanceDAO.deleteAll(); fullMaintenance = null; noneMaintenance = null; }
/** * Clear the entity manager and the {@link Client} object * * @throws Exception */ @After public void tearDown() throws Exception { clientDAO.deleteAll(); maintenanceDAO.deleteAll(); client = null; }