protected void setUp() throws Exception {

    super.setUp();

    connection = super.newConnection();
    stmnt = connection.createStatement();
  }
Ejemplo n.º 2
0
  protected void setUp() {

    super.setUp();

    try {
      connection = super.newConnection();
      stmnt = connection.createStatement();
    } catch (Exception e) {
    }
  }
  public void tearDown() {

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

    super.tearDown();
  }
  public void setUp() {

    super.setUp();

    try {
      openConnection();
    } catch (SQLException ex) {
      throw new RuntimeException(ex);
    }
  }
Ejemplo n.º 5
0
  protected void setUp() {

    super.setUp();

    try {
      connection = super.newConnection();
      statement = connection.createStatement();
    } catch (Exception e) {
      System.out.println(e);
    }
  }
  protected void tearDown() {

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

    super.tearDown();
  }
Ejemplo n.º 7
0
  protected void tearDown() {

    try {
      statement = connection.createStatement();

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

    super.tearDown();
  }
Ejemplo n.º 8
0
  protected void setUp() {

    super.setUp();

    try {
      Connection connection = super.newConnection();
      Statement statement = connection.createStatement();

      statement.execute("drop table time_test if exists");
      statement.execute("drop table date_test if exists");
      statement.execute("create table time_test(time_test time)");
      statement.execute("create table date_test(date_test date)");
      connection.close();
    } catch (Exception e) {
    }
  }
 protected void tearDown() {
   executeStatement("SHUTDOWN");
   super.tearDown();
 }
Ejemplo n.º 10
0
 public void setUp() {
   super.setUp();
   setupDatabase();
 }