use of org.junit.jupiter.api.AfterAll in project mssql-jdbc by Microsoft.
the class bvtTest method terminate.
/**
* drops tables
*
* @throws SQLException
*/
@AfterAll
public static void terminate() throws SQLException {
try (DBConnection conn = new DBConnection(connectionString);
DBStatement stmt = conn.createStatement()) {
stmt.execute("if object_id('" + table1.getEscapedTableName() + "','U') is not null" + " drop table " + table1.getEscapedTableName());
stmt.execute("if object_id('" + table2.getEscapedTableName() + "','U') is not null" + " drop table " + table2.getEscapedTableName());
}
}
use of org.junit.jupiter.api.AfterAll in project mssql-jdbc by Microsoft.
the class BatchExecutionWithNullTest method terminateVariation.
@AfterAll
public static void terminateVariation() throws SQLException {
connection = DriverManager.getConnection(connectionString);
SQLServerStatement stmt = (SQLServerStatement) connection.createStatement();
Utils.dropTableIfExists("esimple", stmt);
if (null != pstmt) {
pstmt.close();
}
if (null != pstmt1) {
pstmt1.close();
}
if (null != stmt) {
stmt.close();
}
if (null != rs) {
rs.close();
}
if (null != connection) {
connection.close();
}
}
use of org.junit.jupiter.api.AfterAll in project mssql-jdbc by Microsoft.
the class RegressionTest method cleanup.
/**
* Cleanup after test
*
* @throws SQLException
*/
@AfterAll
public static void cleanup() throws SQLException {
Statement stmt = con.createStatement();
Utils.dropTableIfExists("x", stmt);
Utils.dropTableIfExists("TEST_TABLE", stmt);
if (null != stmt) {
stmt.close();
}
if (null != con) {
con.close();
}
if (null != pstmt1) {
pstmt1.close();
}
if (null != pstmt2) {
pstmt2.close();
}
}
use of org.junit.jupiter.api.AfterAll in project tutorials-java by Artister.
the class PowerPointIntegrationTest method tearDown.
@AfterAll
public void tearDown() throws Exception {
File testFile = new File(fileLocation);
if (testFile.exists()) {
testFile.delete();
}
pph = null;
}
use of org.junit.jupiter.api.AfterAll in project jnosql-diana-driver by eclipse.
the class DocumentQueryTest method afterClass.
@AfterAll
public static void afterClass() {
CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
keyValueEntityManager.remove("person:id");
keyValueEntityManager.remove("person:id2");
keyValueEntityManager.remove("person:id3");
keyValueEntityManager.remove("person:id4");
}
Aggregations