Search in sources :

Example 6 with AfterAll

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

the class SearchQueryTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("city:salvador");
    keyValueEntityManager.remove("city:sao_paulo");
    keyValueEntityManager.remove("city:rio_janeiro");
    keyValueEntityManager.remove("city:manaus");
}
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 7 with AfterAll

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

the class CouchbaseBucketManagerTest method afterClass.

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

Example 8 with AfterAll

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

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

Example 9 with AfterAll

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

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

Example 10 with AfterAll

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

the class RegressionTest method terminate.

@AfterAll
public static void terminate() throws SQLException {
    SQLServerConnection con = (SQLServerConnection) DriverManager.getConnection(connectionString);
    Statement stmt = con.createStatement();
    Utils.dropTableIfExists(tableName, stmt);
    Utils.dropProcedureIfExists(procName, stmt);
}
Also used : SQLServerConnection(com.microsoft.sqlserver.jdbc.SQLServerConnection) PreparedStatement(java.sql.PreparedStatement) Statement(java.sql.Statement) SQLServerPreparedStatement(com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement) 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