コード例 #1
0
 /**
  * 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());
 }
コード例 #2
0
 /**
  * Clear the context
  *
  * @throws Exception
  */
 @After
 public void tearDown() throws Exception {
   maintenanceDAO.deleteAll();
   fullMaintenance = null;
   noneMaintenance = null;
 }
コード例 #3
0
 /**
  * Clear the entity manager and the {@link Client} object
  *
  * @throws Exception
  */
 @After
 public void tearDown() throws Exception {
   clientDAO.deleteAll();
   maintenanceDAO.deleteAll();
   client = null;
 }