Search in sources :

Example 1 with MemoryTransactionLogDataSource

use of com.dangdang.ddframe.rdb.transaction.soft.datasource.impl.MemoryTransactionLogDataSource in project sharding-jdbc by dangdangdotcom.

the class TransactionLogStorageFactoryTest method assertCreateMemoryTransactionLogStorageFactory.

@Test
public void assertCreateMemoryTransactionLogStorageFactory() {
    TransactionLogDataSource transactionLogDataSource = new MemoryTransactionLogDataSource();
    assertThat(TransactionLogStorageFactory.createTransactionLogStorage(transactionLogDataSource), instanceOf(TransactionLogStorage.class));
}
Also used : MemoryTransactionLogDataSource(com.dangdang.ddframe.rdb.transaction.soft.datasource.impl.MemoryTransactionLogDataSource) MemoryTransactionLogDataSource(com.dangdang.ddframe.rdb.transaction.soft.datasource.impl.MemoryTransactionLogDataSource) TransactionLogDataSource(com.dangdang.ddframe.rdb.transaction.soft.datasource.TransactionLogDataSource) RdbTransactionLogDataSource(com.dangdang.ddframe.rdb.transaction.soft.datasource.impl.RdbTransactionLogDataSource) Test(org.junit.Test)

Aggregations

TransactionLogDataSource (com.dangdang.ddframe.rdb.transaction.soft.datasource.TransactionLogDataSource)1 MemoryTransactionLogDataSource (com.dangdang.ddframe.rdb.transaction.soft.datasource.impl.MemoryTransactionLogDataSource)1 RdbTransactionLogDataSource (com.dangdang.ddframe.rdb.transaction.soft.datasource.impl.RdbTransactionLogDataSource)1 Test (org.junit.Test)1