use of org.killbill.billing.account.api.ImmutableAccountInternalApi 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);
}
Aggregations