Esempio n. 1
0
 /**
  * Destroy resources created by test case
  *
  * @throws Exception if an error occurs
  */
 public void tearDown() throws Exception {
   try {
     this.stmt.executeUpdate("DROP TABLE IF EXISTS BLOBTEST");
   } catch (Exception e) {
     e.printStackTrace();
   } finally {
     super.tearDown();
   }
 }
Esempio n. 2
0
 /**
  * Un-binds the DataSource, and cleans up the filesystem
  *
  * @throws Exception if an error occurs
  */
 @Override
 public void tearDown() throws Exception {
   try {
     this.ctx.unbind(this.tempDir.getAbsolutePath() + "/test");
     this.ctx.close();
     this.tempDir.delete();
   } finally {
     super.tearDown();
   }
 }
Esempio n. 3
0
  /**
   * DOCUMENT ME!
   *
   * @throws Exception DOCUMENT ME!
   */
  public void tearDown() throws Exception {
    stmt.executeUpdate("DROP TABLE statement_test");

    for (int i = 0; i < MAX_COLUMNS_TO_TEST; i += STEP) {

      StringBuffer stmtBuf = new StringBuffer("DROP TABLE IF EXISTS statement_col_test_");
      stmtBuf.append(i);
      stmt.executeUpdate(stmtBuf.toString());
    }

    try {
      stmt.executeUpdate("DROP TABLE statement_batch_test");
    } /* ignore */ catch (SQLException sqlEx) {;
    }

    super.tearDown();
  }