@Override
    protected void finished(final Description description) {
      super.finished(description);

      try {
        for (Liquibase liquibase : liquibaseList) {
          liquibase.rollback(1000, null);
        }
      } catch (Exception e) {
        e.printStackTrace();
        throw new Error(e);
      } finally {
        try {
          conn.close();
        } catch (Exception f) {
        }
      }
    }
Пример #2
0
 public static void closeDB() throws LiquibaseException, SQLException {
   liquibase.rollback(1000, null);
   conn.close();
 }