@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(); }
@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(); }