Search in sources :

Example 1 with MockAccountModule

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

the class TestServerModuleNoDB method configure.

@Override
public void configure() {
    install(new GuicyKillbillTestNoDBModule(configSource));
    install(new MockNonEntityDaoModule(configSource));
    install(new MockAccountModule(configSource));
    bind(CacheControllerDispatcher.class).toProvider(Providers.<CacheControllerDispatcher>of(null));
}
Also used : CacheControllerDispatcher(org.killbill.billing.util.cache.CacheControllerDispatcher) GuicyKillbillTestNoDBModule(org.killbill.billing.GuicyKillbillTestNoDBModule) MockNonEntityDaoModule(org.killbill.billing.mock.glue.MockNonEntityDaoModule) MockAccountModule(org.killbill.billing.mock.glue.MockAccountModule)

Example 2 with MockAccountModule

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

the class TestJaxrsModuleNoDB method configure.

@Override
public void configure() {
    super.configure();
    install(new GuicyKillbillTestNoDBModule(configSource));
    install(new MockNonEntityDaoModule(configSource));
    install(new MockAccountModule(configSource));
    install(new CacheModule(configSource));
    install(new ConfigModule(configSource));
    bind(TenantInternalApi.class).toInstance(Mockito.mock(TenantInternalApi.class));
    bind(SecurityManager.class).toInstance(Mockito.mock(SecurityManager.class));
}
Also used : SecurityManager(org.apache.shiro.mgt.SecurityManager) ConfigModule(org.killbill.billing.util.glue.ConfigModule) GuicyKillbillTestNoDBModule(org.killbill.billing.GuicyKillbillTestNoDBModule) TenantInternalApi(org.killbill.billing.tenant.api.TenantInternalApi) CacheModule(org.killbill.billing.util.glue.CacheModule) MockNonEntityDaoModule(org.killbill.billing.mock.glue.MockNonEntityDaoModule) MockAccountModule(org.killbill.billing.mock.glue.MockAccountModule)

Example 3 with MockAccountModule

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

the class TestTenantModuleWithEmbeddedDB method configure.

@Override
public void configure() {
    super.configure();
    install(new GuicyKillbillTestWithEmbeddedDBModule(configSource));
    install(new NonEntityDaoModule(configSource));
    install(new SecurityModule(configSource));
    install(new ShiroModuleNoDB(configSource));
    install(new MockAccountModule(configSource));
}
Also used : NonEntityDaoModule(org.killbill.billing.util.glue.NonEntityDaoModule) GuicyKillbillTestWithEmbeddedDBModule(org.killbill.billing.GuicyKillbillTestWithEmbeddedDBModule) ShiroModuleNoDB(org.killbill.billing.util.glue.TestUtilModuleNoDB.ShiroModuleNoDB) SecurityModule(org.killbill.billing.util.glue.SecurityModule) MockAccountModule(org.killbill.billing.mock.glue.MockAccountModule)

Example 4 with MockAccountModule

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

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

MockAccountModule (org.killbill.billing.mock.glue.MockAccountModule)12 MockNonEntityDaoModule (org.killbill.billing.mock.glue.MockNonEntityDaoModule)9 GuicyKillbillTestNoDBModule (org.killbill.billing.GuicyKillbillTestNoDBModule)8 MockTagModule (org.killbill.billing.mock.glue.MockTagModule)4 CacheModule (org.killbill.billing.util.glue.CacheModule)3 ConfigModule (org.killbill.billing.util.glue.ConfigModule)3 MockCatalogModule (org.killbill.billing.catalog.MockCatalogModule)2 MockSubscriptionModule (org.killbill.billing.mock.glue.MockSubscriptionModule)2 MockTenantModule (org.killbill.billing.mock.glue.MockTenantModule)2 CacheControllerDispatcher (org.killbill.billing.util.cache.CacheControllerDispatcher)2 SecurityManager (org.apache.shiro.mgt.SecurityManager)1 GuicyKillbillTestWithEmbeddedDBModule (org.killbill.billing.GuicyKillbillTestWithEmbeddedDBModule)1 MockEntitlementModule (org.killbill.billing.mock.glue.MockEntitlementModule)1 MockInvoiceModule (org.killbill.billing.mock.glue.MockInvoiceModule)1 TestOverdueHelper (org.killbill.billing.overdue.TestOverdueHelper)1 OverdueBusListenerTester (org.killbill.billing.overdue.applicator.OverdueBusListenerTester)1 SubscriptionBaseTimelineApi (org.killbill.billing.subscription.api.timeline.SubscriptionBaseTimelineApi)1 TenantInternalApi (org.killbill.billing.tenant.api.TenantInternalApi)1 EmailModule (org.killbill.billing.util.email.EmailModule)1 TemplateModule (org.killbill.billing.util.email.templates.TemplateModule)1