Search in sources :

Example 1 with AccountInternalApi

use of org.killbill.billing.account.api.AccountInternalApi in project killbill by killbill.

the class MockAccountModule method installInternalApi.

@Override
public void installInternalApi() {
    final ImmutableAccountData immutableAccountData = Mockito.mock(ImmutableAccountData.class);
    Mockito.when(immutableAccountData.getTimeZone()).thenReturn(DateTimeZone.UTC);
    Mockito.when(immutableAccountData.getFixedOffsetTimeZone()).thenReturn(DateTimeZone.UTC);
    final AccountInternalApi accountInternalApi = Mockito.mock(AccountInternalApi.class);
    final ImmutableAccountInternalApi immutableAccountInternalApi = Mockito.mock(ImmutableAccountInternalApi.class);
    bind(AccountInternalApi.class).toInstance(accountInternalApi);
    bind(ImmutableAccountInternalApi.class).toInstance(immutableAccountInternalApi);
}
Also used : ImmutableAccountInternalApi(org.killbill.billing.account.api.ImmutableAccountInternalApi) ImmutableAccountData(org.killbill.billing.account.api.ImmutableAccountData) ImmutableAccountInternalApi(org.killbill.billing.account.api.ImmutableAccountInternalApi) AccountInternalApi(org.killbill.billing.account.api.AccountInternalApi)

Aggregations

AccountInternalApi (org.killbill.billing.account.api.AccountInternalApi)1 ImmutableAccountData (org.killbill.billing.account.api.ImmutableAccountData)1 ImmutableAccountInternalApi (org.killbill.billing.account.api.ImmutableAccountInternalApi)1