Search in sources :

Example 6 with MockTenantModule

use of org.killbill.billing.mock.glue.MockTenantModule 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 7 with MockTenantModule

use of org.killbill.billing.mock.glue.MockTenantModule 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 8 with MockTenantModule

use of org.killbill.billing.mock.glue.MockTenantModule 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)

Example 9 with MockTenantModule

use of org.killbill.billing.mock.glue.MockTenantModule in project killbill by killbill.

the class TestUsageModule method installUsageUserApi.

protected void installUsageUserApi() {
    bind(MockUsageUserApi.class).asEagerSingleton();
    bind(UsageUserApi.class).to(MockUsageUserApi.class).asEagerSingleton();
    install(new MockTenantModule(configSource));
}
Also used : MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule) MockUsageUserApi(org.killbill.billing.usage.api.user.MockUsageUserApi)

Example 10 with MockTenantModule

use of org.killbill.billing.mock.glue.MockTenantModule in project killbill by killbill.

the class TestCatalogModule method configure.

@Override
public void configure() {
    super.configure();
    install(new MockNonEntityDaoModule(configSource));
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new MockTenantModule(configSource));
    install(new MockAccountModule(configSource));
}
Also used : MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule) ConfigModule(org.killbill.billing.util.glue.ConfigModule) CacheModule(org.killbill.billing.util.glue.CacheModule) MockNonEntityDaoModule(org.killbill.billing.mock.glue.MockNonEntityDaoModule) MockAccountModule(org.killbill.billing.mock.glue.MockAccountModule)

Aggregations

MockTenantModule (org.killbill.billing.mock.glue.MockTenantModule)10 CacheModule (org.killbill.billing.util.glue.CacheModule)8 ConfigModule (org.killbill.billing.util.glue.ConfigModule)8 CallContextModule (org.killbill.billing.util.glue.CallContextModule)7 CustomFieldModule (org.killbill.billing.util.glue.CustomFieldModule)3 MemoryGlobalLockerModule (org.killbill.billing.util.glue.MemoryGlobalLockerModule)3 CatalogModule (org.killbill.billing.catalog.glue.CatalogModule)2 MockAccountModule (org.killbill.billing.mock.glue.MockAccountModule)2 MockInvoiceModule (org.killbill.billing.mock.glue.MockInvoiceModule)2 MockSubscriptionModule (org.killbill.billing.mock.glue.MockSubscriptionModule)2 EmailModule (org.killbill.billing.util.email.EmailModule)2 TemplateModule (org.killbill.billing.util.email.templates.TemplateModule)2 AuditModule (org.killbill.billing.util.glue.AuditModule)2 SecurityModule (org.killbill.billing.util.glue.SecurityModule)2 TestApiListener (org.killbill.billing.api.TestApiListener)1 TestInvoiceHelper (org.killbill.billing.invoice.TestInvoiceHelper)1 MockEntitlementModule (org.killbill.billing.mock.glue.MockEntitlementModule)1 MockNonEntityDaoModule (org.killbill.billing.mock.glue.MockNonEntityDaoModule)1 MockTagModule (org.killbill.billing.mock.glue.MockTagModule)1 TestOverdueHelper (org.killbill.billing.overdue.TestOverdueHelper)1