Search in sources :

Example 6 with ConfigModule

use of org.killbill.billing.util.glue.ConfigModule in project killbill by killbill.

the class TestPaymentModule method configure.

@Override
protected void configure() {
    super.configure();
    install(new MockInvoiceModule(configSource));
    install(new MockSubscriptionModule(configSource));
    install(new MemoryGlobalLockerModule(configSource));
    install(new MockTenantModule(configSource));
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new CallContextModule(configSource));
    installExternalApis();
    bind(TestPaymentHelper.class).asEagerSingleton();
}
Also used : MemoryGlobalLockerModule(org.killbill.billing.util.glue.MemoryGlobalLockerModule) MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule) MockSubscriptionModule(org.killbill.billing.mock.glue.MockSubscriptionModule) CallContextModule(org.killbill.billing.util.glue.CallContextModule) ConfigModule(org.killbill.billing.util.glue.ConfigModule) TestPaymentHelper(org.killbill.billing.payment.TestPaymentHelper) MockInvoiceModule(org.killbill.billing.mock.glue.MockInvoiceModule) CacheModule(org.killbill.billing.util.glue.CacheModule)

Example 7 with ConfigModule

use of org.killbill.billing.util.glue.ConfigModule in project killbill by killbill.

the class TestUsageModuleWithEmbeddedDB method configure.

@Override
public void configure() {
    super.configure();
    install(new GuicyKillbillTestWithEmbeddedDBModule(configSource));
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new NonEntityDaoModule(configSource));
    install(new DefaultAccountModule(configSource));
}
Also used : NonEntityDaoModule(org.killbill.billing.util.glue.NonEntityDaoModule) DefaultAccountModule(org.killbill.billing.account.glue.DefaultAccountModule) ConfigModule(org.killbill.billing.util.glue.ConfigModule) GuicyKillbillTestWithEmbeddedDBModule(org.killbill.billing.GuicyKillbillTestWithEmbeddedDBModule) CacheModule(org.killbill.billing.util.glue.CacheModule)

Example 8 with ConfigModule

use of org.killbill.billing.util.glue.ConfigModule in project killbill by killbill.

the class TestOverdueModule method configure.

@Override
protected void configure() {
    super.configure();
    install(new AuditModule(configSource));
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new CallContextModule(configSource));
    install(new CustomFieldModule(configSource));
    install(new EmailModule(configSource));
    install(new MockAccountModule(configSource));
    install(new MockEntitlementModule(configSource, new ApplicatorBlockingApi()));
    install(new MockInvoiceModule(configSource));
    install(new MockTagModule(configSource, true));
    install(new TemplateModule(configSource));
    install(new MockTenantModule(configSource));
    install(new MemoryGlobalLockerModule(configSource));
    bind(OverdueBusListenerTester.class).asEagerSingleton();
    bind(TestOverdueHelper.class).asEagerSingleton();
}
Also used : MemoryGlobalLockerModule(org.killbill.billing.util.glue.MemoryGlobalLockerModule) ConfigModule(org.killbill.billing.util.glue.ConfigModule) TemplateModule(org.killbill.billing.util.email.templates.TemplateModule) CacheModule(org.killbill.billing.util.glue.CacheModule) MockInvoiceModule(org.killbill.billing.mock.glue.MockInvoiceModule) EmailModule(org.killbill.billing.util.email.EmailModule) TestOverdueHelper(org.killbill.billing.overdue.TestOverdueHelper) MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule) OverdueBusListenerTester(org.killbill.billing.overdue.applicator.OverdueBusListenerTester) CallContextModule(org.killbill.billing.util.glue.CallContextModule) MockEntitlementModule(org.killbill.billing.mock.glue.MockEntitlementModule) MockTagModule(org.killbill.billing.mock.glue.MockTagModule) AuditModule(org.killbill.billing.util.glue.AuditModule) CustomFieldModule(org.killbill.billing.util.glue.CustomFieldModule) MockAccountModule(org.killbill.billing.mock.glue.MockAccountModule)

Example 9 with ConfigModule

use of org.killbill.billing.util.glue.ConfigModule in project killbill by killbill.

the class TestJunctionModule method configure.

@Override
protected void configure() {
    super.configure();
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new CallContextModule(configSource));
    install(new MockTenantModule(configSource));
    // Needed because Entitlement depends on Security
    install(new KillBillShiroModuleOnlyIniRealm(configSource));
    install(new SecurityModule(configSource));
}
Also used : MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule) CallContextModule(org.killbill.billing.util.glue.CallContextModule) ConfigModule(org.killbill.billing.util.glue.ConfigModule) CacheModule(org.killbill.billing.util.glue.CacheModule) SecurityModule(org.killbill.billing.util.glue.SecurityModule)

Example 10 with ConfigModule

use of org.killbill.billing.util.glue.ConfigModule in project killbill by killbill.

the class TestDefaultSubscriptionModule method configure.

@Override
protected void configure() {
    super.configure();
    install(new CatalogModule(configSource));
    install(new CallContextModule(configSource));
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new MockTenantModule(configSource));
    bind(TestSubscriptionHelper.class).asEagerSingleton();
    bind(TestApiListener.class).asEagerSingleton();
    bind(SubscriptionTestInitializer.class).to(DefaultSubscriptionTestInitializer.class).asEagerSingleton();
}
Also used : DefaultSubscriptionTestInitializer(org.killbill.billing.subscription.DefaultSubscriptionTestInitializer) MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule) CallContextModule(org.killbill.billing.util.glue.CallContextModule) TestSubscriptionHelper(org.killbill.billing.subscription.api.user.TestSubscriptionHelper) ConfigModule(org.killbill.billing.util.glue.ConfigModule) CatalogModule(org.killbill.billing.catalog.glue.CatalogModule) TestApiListener(org.killbill.billing.api.TestApiListener) CacheModule(org.killbill.billing.util.glue.CacheModule)

Aggregations

CacheModule (org.killbill.billing.util.glue.CacheModule)14 ConfigModule (org.killbill.billing.util.glue.ConfigModule)14 CallContextModule (org.killbill.billing.util.glue.CallContextModule)11 MockTenantModule (org.killbill.billing.mock.glue.MockTenantModule)8 CustomFieldModule (org.killbill.billing.util.glue.CustomFieldModule)6 CatalogModule (org.killbill.billing.catalog.glue.CatalogModule)5 EmailModule (org.killbill.billing.util.email.EmailModule)5 TemplateModule (org.killbill.billing.util.email.templates.TemplateModule)5 AuditModule (org.killbill.billing.util.glue.AuditModule)5 SecurityModule (org.killbill.billing.util.glue.SecurityModule)5 DefaultAccountModule (org.killbill.billing.account.glue.DefaultAccountModule)4 UsageModule (org.killbill.billing.usage.glue.UsageModule)4 NonEntityDaoModule (org.killbill.billing.util.glue.NonEntityDaoModule)4 TagStoreModule (org.killbill.billing.util.glue.TagStoreModule)4 BeatrixModule (org.killbill.billing.beatrix.glue.BeatrixModule)3 CurrencyModule (org.killbill.billing.currency.glue.CurrencyModule)3 DefaultEntitlementModule (org.killbill.billing.entitlement.glue.DefaultEntitlementModule)3 DefaultJunctionModule (org.killbill.billing.junction.glue.DefaultJunctionModule)3 MockAccountModule (org.killbill.billing.mock.glue.MockAccountModule)3 DefaultSubscriptionModule (org.killbill.billing.subscription.glue.DefaultSubscriptionModule)3