@Override
 protected void tearDown() throws Exception {
   TestObjectFactory.cleanUp(savings);
   TestObjectFactory.cleanUp(client1);
   TestObjectFactory.cleanUp(client2);
   TestObjectFactory.cleanUp(group);
   TestObjectFactory.cleanUp(center);
   StaticHibernateUtil.closeSession();
   super.tearDown();
 }
  @Override
  protected void tearDown() throws Exception {
    try {
      TestObjectFactory.cleanUp(accountBO);
      TestObjectFactory.cleanUp(group);
      TestObjectFactory.cleanUp(center);
    } catch (Exception e) {
      // TODO Whoops, cleanup didnt work, reset db
      TestDatabase.resetMySQLDatabase();
    }

    StaticHibernateUtil.closeSession();
    super.tearDown();
  }
Esempio n. 3
0
 @Override
 protected void tearDown() throws Exception {
   try {
     TestObjectFactory.cleanUp(fee);
     TestObjectFactory.cleanUp(fee1);
     TestObjectFactory.cleanUp(fee2);
     TestObjectFactory.cleanUp(fee3);
     StaticHibernateUtil.closeSession();
   } catch (Exception e) {
     // TODO Whoops, cleanup didnt work, reset db
     TestDatabase.resetMySQLDatabase();
   }
   super.tearDown();
 }
  @Override
  protected void tearDown() throws Exception {
    try {
      TestObjectFactory.cleanUp(centerSavingsAccount);
      TestObjectFactory.cleanUp(groupSavingsAccount);
      TestObjectFactory.cleanUp(clientSavingsAccount);
      TestObjectFactory.cleanUp(groupAccount);
      TestObjectFactory.cleanUp(clientAccount);
      TestObjectFactory.cleanUp(account);
      TestObjectFactory.cleanUp(client);
      TestObjectFactory.cleanUp(group);
      TestObjectFactory.cleanUp(center);

    } catch (Exception e) {
      // Throwing here may mask earlier failures.
      e.printStackTrace();
    }
    StaticHibernateUtil.closeSession();
    super.tearDown();
  }