Search in sources :

Example 16 with AfterAll

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();
    }
}
Also used : SQLServerStatement(com.microsoft.sqlserver.jdbc.SQLServerStatement) AfterAll(org.junit.jupiter.api.AfterAll)

Example 17 with AfterAll

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");
}
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 18 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 19 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 20 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)

Aggregations

AfterAll (org.junit.jupiter.api.AfterAll)224 Statement (java.sql.Statement)39 File (java.io.File)36 PreparedStatement (java.sql.PreparedStatement)18 SQLServerPreparedStatement (com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement)12 Response (jakarta.ws.rs.core.Response)10 CountDownLatch (java.util.concurrent.CountDownLatch)10 CategoryBean (it.vige.rubia.dto.CategoryBean)8 BucketManager (jakarta.nosql.keyvalue.BucketManager)8 BucketManagerFactory (jakarta.nosql.keyvalue.BucketManagerFactory)8 List (java.util.List)8 BucketManager (org.jnosql.diana.api.key.BucketManager)8 BucketManagerFactory (org.jnosql.diana.api.key.BucketManagerFactory)8 ForumBean (it.vige.rubia.dto.ForumBean)7 PosterBean (it.vige.rubia.dto.PosterBean)7 GenericType (jakarta.ws.rs.core.GenericType)7 Arrays.asList (java.util.Arrays.asList)7 BeforeAll (org.junit.jupiter.api.BeforeAll)7 TopicBean (it.vige.rubia.dto.TopicBean)6 CallableStatement (java.sql.CallableStatement)6