protected void setUp() throws Exception { super.setUp(); connection = super.newConnection(); stmnt = connection.createStatement(); }
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); } }
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(); }
protected void tearDown() { try { statement = connection.createStatement(); statement.execute("SHUTDOWN"); statement.close(); connection.close(); } catch (Exception e) { } super.tearDown(); }
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(); }
public void setUp() { super.setUp(); setupDatabase(); }