Search in sources :

Example 1 with TransactionExceptionTranslatorRegistry

use of org.molgenis.data.transaction.TransactionExceptionTranslatorRegistry in project molgenis by molgenis.

the class PostgreSqlTransactionManagerTest method setUpBeforeMethod.

@BeforeMethod
public void setUpBeforeMethod() {
    idGenerator = mock(IdGenerator.class);
    DataSource dataSource = mock(DataSource.class);
    TransactionExceptionTranslatorRegistry transactionExceptionTranslatorRegistry = mock(TransactionExceptionTranslatorRegistry.class);
    molgenisTransactionManager = new PostgreSqlTransactionManager(idGenerator, dataSource, transactionExceptionTranslatorRegistry);
}
Also used : TransactionExceptionTranslatorRegistry(org.molgenis.data.transaction.TransactionExceptionTranslatorRegistry) IdGenerator(org.molgenis.data.populate.IdGenerator) DataSource(javax.sql.DataSource) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

DataSource (javax.sql.DataSource)1 IdGenerator (org.molgenis.data.populate.IdGenerator)1 TransactionExceptionTranslatorRegistry (org.molgenis.data.transaction.TransactionExceptionTranslatorRegistry)1 BeforeMethod (org.testng.annotations.BeforeMethod)1