Search in sources :

Example 1 with TransactionFactory

use of com.scalar.db.service.TransactionFactory in project scalardb by scalar-labs.

the class DistributedTransactionAdminIntegrationTestBase method beforeAll.

@BeforeAll
public void beforeAll() throws Exception {
    initialize();
    TransactionFactory factory = TransactionFactory.create(TestUtils.addSuffix(gerProperties(), TEST_NAME));
    admin = factory.getTransactionAdmin();
    namespace1 = getNamespace1();
    namespace2 = getNamespace2();
    namespace3 = getNamespace3();
    createTables();
    manager = factory.getTransactionManager();
}
Also used : TransactionFactory(com.scalar.db.service.TransactionFactory) BeforeAll(org.junit.jupiter.api.BeforeAll)

Example 2 with TransactionFactory

use of com.scalar.db.service.TransactionFactory in project scalardb by scalar-labs.

the class DistributedTransactionIntegrationTestBase method beforeAll.

@BeforeAll
public void beforeAll() throws Exception {
    initialize();
    String testName = getTestName();
    TransactionFactory factory = TransactionFactory.create(TestUtils.addSuffix(gerProperties(), testName));
    admin = factory.getTransactionAdmin();
    namespace = getNamespaceBaseName() + testName;
    createTables();
    manager = factory.getTransactionManager();
}
Also used : TransactionFactory(com.scalar.db.service.TransactionFactory) BeforeAll(org.junit.jupiter.api.BeforeAll)

Example 3 with TransactionFactory

use of com.scalar.db.service.TransactionFactory in project scalardb by scalar-labs.

the class TwoPhaseCommitTransactionIntegrationTestBase method beforeAll.

@BeforeAll
public void beforeAll() throws Exception {
    initialize();
    String testName = getTestName();
    TransactionFactory factory = TransactionFactory.create(TestUtils.addSuffix(gerProperties(), testName));
    admin = factory.getTransactionAdmin();
    namespace = getNamespaceBaseName() + testName;
    createTables();
    manager = factory.getTwoPhaseCommitTransactionManager();
}
Also used : TransactionFactory(com.scalar.db.service.TransactionFactory) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

TransactionFactory (com.scalar.db.service.TransactionFactory)3 BeforeAll (org.junit.jupiter.api.BeforeAll)3