use of com.dangdang.ddframe.rdb.transaction.soft.datasource.TransactionLogDataSource in project sharding-jdbc by dangdangdotcom.
the class TransactionLogStorageFactoryTest method assertCreateRdbTransactionLogStorageFactory.
@Test
public void assertCreateRdbTransactionLogStorageFactory() {
DataSource dataSource = mock(DataSource.class);
TransactionLogDataSource transactionLogDataSource = new RdbTransactionLogDataSource(dataSource);
assertThat(TransactionLogStorageFactory.createTransactionLogStorage(transactionLogDataSource), instanceOf(TransactionLogStorage.class));
}
use of com.dangdang.ddframe.rdb.transaction.soft.datasource.TransactionLogDataSource 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));
}
Aggregations