Search in sources :

Example 1 with MockInvoiceModule

use of org.killbill.billing.mock.glue.MockInvoiceModule 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 MockTenantModule(configSource));
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    install(new EventModule(configSource));
    install(new CallContextModule(configSource));
    installExternalApis();
    bind(TestPaymentHelper.class).asEagerSingleton();
}
Also used : MockTenantModule(org.killbill.billing.mock.glue.MockTenantModule) MockSubscriptionModule(org.killbill.billing.mock.glue.MockSubscriptionModule) EventModule(org.killbill.billing.util.glue.EventModule) 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 2 with MockInvoiceModule

use of org.killbill.billing.mock.glue.MockInvoiceModule 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 EventModule(configSource));
    install(new CallContextModule(configSource));
    install(new CustomFieldModule(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));
    bind(OverdueBusListenerTester.class).asEagerSingleton();
    bind(TestOverdueHelper.class).asEagerSingleton();
}
Also used : EventModule(org.killbill.billing.util.glue.EventModule) 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) 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)

Aggregations

MockInvoiceModule (org.killbill.billing.mock.glue.MockInvoiceModule)2 MockTenantModule (org.killbill.billing.mock.glue.MockTenantModule)2 CacheModule (org.killbill.billing.util.glue.CacheModule)2 CallContextModule (org.killbill.billing.util.glue.CallContextModule)2 ConfigModule (org.killbill.billing.util.glue.ConfigModule)2 EventModule (org.killbill.billing.util.glue.EventModule)2 MockAccountModule (org.killbill.billing.mock.glue.MockAccountModule)1 MockEntitlementModule (org.killbill.billing.mock.glue.MockEntitlementModule)1 MockSubscriptionModule (org.killbill.billing.mock.glue.MockSubscriptionModule)1 MockTagModule (org.killbill.billing.mock.glue.MockTagModule)1 TestOverdueHelper (org.killbill.billing.overdue.TestOverdueHelper)1 OverdueBusListenerTester (org.killbill.billing.overdue.applicator.OverdueBusListenerTester)1 TestPaymentHelper (org.killbill.billing.payment.TestPaymentHelper)1 TemplateModule (org.killbill.billing.util.email.templates.TemplateModule)1 AuditModule (org.killbill.billing.util.glue.AuditModule)1 CustomFieldModule (org.killbill.billing.util.glue.CustomFieldModule)1