use of org.killbill.billing.util.glue.TestUtilModuleWithEmbeddedDB in project killbill by killbill.
the class UtilTestSuiteWithEmbeddedDB method beforeClass.
@BeforeClass(groups = "slow")
public void beforeClass() throws Exception {
final Injector g = Guice.createInjector(Stage.PRODUCTION, new TestUtilModuleWithEmbeddedDB(configSource));
g.injectMembers(this);
if (DBEngine.MYSQL.equals(helper.getDBEngine())) {
Assert.assertTrue(locker instanceof MySqlGlobalLocker);
} else if (DBEngine.POSTGRESQL.equals(helper.getDBEngine())) {
Assert.assertTrue(locker instanceof PostgreSQLGlobalLocker);
} else {
Assert.assertTrue(locker instanceof MemoryGlobalLocker);
}
Assert.assertTrue(locker.isFree("a", "b"));
}
Aggregations