Search in sources :

Example 6 with EntitySqlDaoTransactionalJdbiWrapper

use of org.killbill.billing.util.entity.dao.EntitySqlDaoTransactionalJdbiWrapper in project killbill by killbill.

the class TestSubscriptionDao method beforeMethod.

@Override
@BeforeMethod(groups = "slow")
public void beforeMethod() throws Exception {
    if (hasFailed()) {
        return;
    }
    // Note: this will cleanup all tables
    super.beforeMethod();
    // internal context will be configured for accountId
    final AccountData accountData = subscriptionTestInitializer.initAccountData(clock);
    final Account account = createAccount(accountData);
    accountId = account.getId();
    transactionalSqlDao = new EntitySqlDaoTransactionalJdbiWrapper(dbi, roDbi, clock, new CacheControllerDispatcher(), nonEntityDao, internalCallContextFactory);
}
Also used : Account(org.killbill.billing.account.api.Account) AccountData(org.killbill.billing.account.api.AccountData) CacheControllerDispatcher(org.killbill.billing.util.cache.CacheControllerDispatcher) EntitySqlDaoTransactionalJdbiWrapper(org.killbill.billing.util.entity.dao.EntitySqlDaoTransactionalJdbiWrapper) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

EntitySqlDaoTransactionalJdbiWrapper (org.killbill.billing.util.entity.dao.EntitySqlDaoTransactionalJdbiWrapper)6 BeforeMethod (org.testng.annotations.BeforeMethod)3 Test (org.testng.annotations.Test)3 TagModelDao (org.killbill.billing.util.tag.dao.TagModelDao)2 UUID (java.util.UUID)1 Account (org.killbill.billing.account.api.Account)1 AccountData (org.killbill.billing.account.api.AccountData)1 SecurityApiException (org.killbill.billing.security.SecurityApiException)1 CacheControllerDispatcher (org.killbill.billing.util.cache.CacheControllerDispatcher)1