use of com.dangdang.ddframe.rdb.transaction.soft.storage.impl.RdbTransactionLogStorage in project sharding-jdbc by dangdangdotcom.
the class RdbTransactionLogStorageOperationsTest method assertRdbTransactionLogStorageOperations.
@Test
public void assertRdbTransactionLogStorageOperations() throws SQLException {
BasicDataSource dataSource = new BasicDataSource();
dataSource.setDriverClassName(org.h2.Driver.class.getName());
dataSource.setUrl("jdbc:h2:mem:db_transaction_storage");
dataSource.setUsername("sa");
dataSource.setPassword("");
createTable(dataSource);
TransactionLogStorage storage = new RdbTransactionLogStorage(dataSource);
assertTransactionLogStorageOperations(storage);
}
Aggregations