public void tearDown() {

    try {
      conn.close();
    } catch (SQLException ex) {
      throw new RuntimeException(ex);
    }

    super.tearDown();
  }
  protected void tearDown() {

    try {
      stmnt.execute("SHUTDOWN");
      connection.close();
    } catch (Exception e) {
      e.printStackTrace();
      System.out.println("TestSql.tearDown() error: " + e.getMessage());
    }

    super.tearDown();
  }
Exemplo n.º 3
0
  protected void tearDown() {

    try {
      statement = connection.createStatement();

      statement.execute("SHUTDOWN");
      statement.close();
      connection.close();
    } catch (Exception e) {
    }

    super.tearDown();
  }
 protected void tearDown() {
   executeStatement("SHUTDOWN");
   super.tearDown();
 }