コード例 #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();
   }
 }
コード例 #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();
   }
 }
コード例 #3
0
ファイル: StatementsTest.java プロジェクト: Udo/JCMS
  /**
   * 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();
  }