use of org.junit.jupiter.api.AfterAll in project rubia-forums by flashboss.
the class ForumInstanceTest method stop.
@AfterAll
public static void stop() {
log.debug("stopped test");
Response response = get(url + "removeForumInstance/2", authorization);
response.readEntity(ForumInstanceBean.class);
response = get(url + "findForumInstanceById/2", authorization);
ForumInstanceBean forumInstance = response.readEntity(ForumInstanceBean.class);
assertNull(forumInstance);
response.close();
}
use of org.junit.jupiter.api.AfterAll in project hibernate-orm by hibernate.
the class SequenceInformationMariaDBTest method releaseResources.
@AfterAll
public void releaseResources() {
try (Connection connection = connectionProvider.getConnection();
Statement statement = connection.createStatement()) {
try {
statement.execute("DROP SEQUENCE book_sequence");
statement.execute("DROP SEQUENCE author_sequence");
} catch (SQLException e) {
}
try {
statement.execute("DROP TABLE TBL_BOOK");
statement.execute("DROP TABLE TBL_AUTHOR");
} catch (SQLException e) {
}
} catch (SQLException e) {
fail(e.getMessage());
}
if (connectionProvider != null) {
connectionProvider.stop();
}
}
use of org.junit.jupiter.api.AfterAll in project mssql-jdbc by Microsoft.
the class BatchTriggerTest method terminateVariation.
/**
* Cleaning up
*
* @throws SQLException
*/
@AfterAll
public static void terminateVariation() throws SQLException {
try (Statement stmt = connection.createStatement()) {
TestUtils.dropTableIfExists(AbstractSQLGenerator.escapeIdentifier(tableName), stmt);
stmt.execute("IF EXISTS (\r\n" + " SELECT *\r\n" + " FROM sys.objects\r\n" + " WHERE [type] = 'TR' AND [name] = '" + TestUtils.escapeSingleQuotes(triggerName) + "'\r\n" + " )\r\n" + " DROP TRIGGER " + AbstractSQLGenerator.escapeIdentifier(triggerName) + Constants.SEMI_COLON);
}
}
use of org.junit.jupiter.api.AfterAll in project mssql-jdbc by Microsoft.
the class TVPNumericTest method terminateVariation.
@AfterAll
public static void terminateVariation() throws SQLException {
try (Statement stmt = connection.createStatement()) {
TestUtils.dropProcedureIfExists(procedureName, stmt);
TestUtils.dropTableIfExists(charTableName, stmt);
TestUtils.dropTypeIfExists(tvpName, stmt);
}
}
use of org.junit.jupiter.api.AfterAll in project mssql-jdbc by Microsoft.
the class SQLServerSpatialDatatypeTest method afterAll.
/**
* drop the tables
*
* @throws SQLException
*/
@AfterAll
public static void afterAll() throws SQLException {
try (Statement stmt = connection.createStatement()) {
TestUtils.dropTableIfExists(AbstractSQLGenerator.escapeIdentifier(geomTableName), stmt);
TestUtils.dropTableIfExists(AbstractSQLGenerator.escapeIdentifier(geogTableName), stmt);
TestUtils.dropTableIfExists(AbstractSQLGenerator.escapeIdentifier(spatialDatatypeTableName), stmt);
}
}
Aggregations