Search in sources :

Example 11 with AfterAll

use of org.junit.jupiter.api.AfterAll in project mssql-jdbc by Microsoft.

the class LimitEscapeTest method afterAll.

/**
 * Clean up
 * @throws Exception
 */
@AfterAll
public static void afterAll() throws Exception {
    Statement stmt = conn.createStatement();
    try {
        Utils.dropTableIfExists("UnitStatement_LimitEscape_t1", stmt);
        Utils.dropTableIfExists("UnitStatement_LimitEscape_t2", stmt);
        Utils.dropTableIfExists("UnitStatement_LimitEscape_t3", stmt);
        Utils.dropTableIfExists("UnitStatement_LimitEscape_t4", stmt);
    } catch (Exception ex) {
        fail(ex.toString());
    } finally {
        stmt.close();
        conn.close();
    }
}
Also used : PreparedStatement(java.sql.PreparedStatement) Statement(java.sql.Statement) CallableStatement(java.sql.CallableStatement) InvocationTargetException(java.lang.reflect.InvocationTargetException) AfterAll(org.junit.jupiter.api.AfterAll)

Example 12 with AfterAll

use of org.junit.jupiter.api.AfterAll in project jnosql-diana-driver by eclipse.

the class CouchbaseDocumentCollectionManagerTest 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");
}
Also used : CouchbaseKeyValueConfiguration(org.jnosql.diana.couchbase.key.CouchbaseKeyValueConfiguration) BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 13 with AfterAll

use of org.junit.jupiter.api.AfterAll in project jnosql-diana-driver by eclipse.

the class CouchbaseListTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("jnosql:list");
}
Also used : BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 14 with AfterAll

use of org.junit.jupiter.api.AfterAll in project jnosql-diana-driver by eclipse.

the class CouchbaseMapTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("jnosql:map");
}
Also used : BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Aggregations

AfterAll (org.junit.jupiter.api.AfterAll)14 BucketManager (org.jnosql.diana.api.key.BucketManager)8 BucketManagerFactory (org.jnosql.diana.api.key.BucketManagerFactory)8 PreparedStatement (java.sql.PreparedStatement)3 Statement (java.sql.Statement)3 CouchbaseKeyValueConfiguration (org.jnosql.diana.couchbase.key.CouchbaseKeyValueConfiguration)3 SQLServerConnection (com.microsoft.sqlserver.jdbc.SQLServerConnection)1 SQLServerPreparedStatement (com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement)1 SQLServerStatement (com.microsoft.sqlserver.jdbc.SQLServerStatement)1 DBConnection (com.microsoft.sqlserver.testframework.DBConnection)1 DBStatement (com.microsoft.sqlserver.testframework.DBStatement)1 File (java.io.File)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 CallableStatement (java.sql.CallableStatement)1