Search in sources :

Example 1 with MockSubscriptionModule

use of org.killbill.billing.mock.glue.MockSubscriptionModule 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 EventModule(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) EventModule(org.killbill.billing.util.glue.EventModule) 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 2 with MockSubscriptionModule

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

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

the class TestEntitlementModuleNoDB method configure.

@Override
protected void configure() {
    super.configure();
    install(new GuicyKillbillTestNoDBModule(configSource, clock));
    install(new MockNonEntityDaoModule(configSource));
    install(new MockTagModule(configSource));
    install(new MockSubscriptionModule(configSource));
    install(new MockCatalogModule(configSource));
    install(new MockAccountModule(configSource));
    bind(AuditDao.class).toInstance(new MockAuditDao());
}
Also used : AuditDao(org.killbill.billing.util.audit.dao.AuditDao) MockAuditDao(org.killbill.billing.util.audit.dao.MockAuditDao) MockAuditDao(org.killbill.billing.util.audit.dao.MockAuditDao) MockSubscriptionModule(org.killbill.billing.mock.glue.MockSubscriptionModule) MockTagModule(org.killbill.billing.mock.glue.MockTagModule) GuicyKillbillTestNoDBModule(org.killbill.billing.GuicyKillbillTestNoDBModule) MockCatalogModule(org.killbill.billing.catalog.MockCatalogModule) MockNonEntityDaoModule(org.killbill.billing.mock.glue.MockNonEntityDaoModule) MockAccountModule(org.killbill.billing.mock.glue.MockAccountModule)

Example 4 with MockSubscriptionModule

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

the class TestJunctionModuleNoDB method configure.

@Override
protected void configure() {
    super.configure();
    install(new GuicyKillbillTestNoDBModule(configSource, clock));
    install(new MockNonEntityDaoModule(configSource));
    install(new MockAccountModule(configSource));
    install(new MockCatalogModule(configSource));
    install(new MockSubscriptionModule(configSource));
    install(new MockEntitlementModuleForJunction(configSource));
    install(new MockTagModule(configSource));
}
Also used : MockSubscriptionModule(org.killbill.billing.mock.glue.MockSubscriptionModule) MockTagModule(org.killbill.billing.mock.glue.MockTagModule) GuicyKillbillTestNoDBModule(org.killbill.billing.GuicyKillbillTestNoDBModule) MockCatalogModule(org.killbill.billing.catalog.MockCatalogModule) MockNonEntityDaoModule(org.killbill.billing.mock.glue.MockNonEntityDaoModule) MockAccountModule(org.killbill.billing.mock.glue.MockAccountModule)

Aggregations

MockSubscriptionModule (org.killbill.billing.mock.glue.MockSubscriptionModule)4 GuicyKillbillTestNoDBModule (org.killbill.billing.GuicyKillbillTestNoDBModule)2 MockCatalogModule (org.killbill.billing.catalog.MockCatalogModule)2 MockAccountModule (org.killbill.billing.mock.glue.MockAccountModule)2 MockNonEntityDaoModule (org.killbill.billing.mock.glue.MockNonEntityDaoModule)2 MockTagModule (org.killbill.billing.mock.glue.MockTagModule)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 MockInvoiceModule (org.killbill.billing.mock.glue.MockInvoiceModule)1 TestPaymentHelper (org.killbill.billing.payment.TestPaymentHelper)1 AuditDao (org.killbill.billing.util.audit.dao.AuditDao)1 MockAuditDao (org.killbill.billing.util.audit.dao.MockAuditDao)1 AuditModule (org.killbill.billing.util.glue.AuditModule)1 CustomFieldModule (org.killbill.billing.util.glue.CustomFieldModule)1 TagStoreModule (org.killbill.billing.util.glue.TagStoreModule)1