Search in sources :

Example 1 with MockTenantModule

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

the class TestInvoiceModule method configure.

@Override
protected void configure() {
    super.configure();
    install(new CallContextModule(configSource));
    install(new MemoryGlobalLockerModule(configSource));
    install(new CatalogModule(configSource));
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new TemplateModule(configSource));
    install(new EmailModule(configSource));
    install(new MockTenantModule(configSource));
    install(new CustomFieldModule(configSource));
    install(new UsageModule(configSource));
    installExternalApis();
    bind(TestInvoiceHelper.class).asEagerSingleton();
}
Also used : MemoryGlobalLockerModule(org.killbill.billing.util.glue.MemoryGlobalLockerModule) MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule) TestInvoiceHelper(org.killbill.billing.invoice.TestInvoiceHelper) CallContextModule(org.killbill.billing.util.glue.CallContextModule) ConfigModule(org.killbill.billing.util.glue.ConfigModule) CatalogModule(org.killbill.billing.catalog.glue.CatalogModule) TemplateModule(org.killbill.billing.util.email.templates.TemplateModule) UsageModule(org.killbill.billing.usage.glue.UsageModule) CacheModule(org.killbill.billing.util.glue.CacheModule) EmailModule(org.killbill.billing.util.email.EmailModule) CustomFieldModule(org.killbill.billing.util.glue.CustomFieldModule)

Example 2 with MockTenantModule

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

the class TestAccountModule 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 MockTenantModule(configSource));
    // Needed for Audit
    install(new MockSubscriptionModule(configSource));
    install(new TagStoreModule(configSource));
}
Also used : 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) TagStoreModule(org.killbill.billing.util.glue.TagStoreModule) AuditModule(org.killbill.billing.util.glue.AuditModule) CacheModule(org.killbill.billing.util.glue.CacheModule) CustomFieldModule(org.killbill.billing.util.glue.CustomFieldModule)

Example 3 with MockTenantModule

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

the class TestEntitlementModule method configure.

@Override
protected void configure() {
    super.configure();
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new CallContextModule(configSource));
    install(new MockTenantModule(configSource));
    install(new KillBillShiroModuleOnlyIniRealm(configSource));
    install(new KillBillShiroAopModule());
    install(new SecurityModule(configSource));
}
Also used : MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule) KillBillShiroAopModule(org.killbill.billing.util.glue.KillBillShiroAopModule) 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 4 with MockTenantModule

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

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

the class TestUtilModule method configure.

@Override
protected void configure() {
    //install(new CallContextModule());
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new MockTenantModule(configSource));
    installHacks();
}
Also used : MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule)

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