use of com.github.robozonky.api.remote.entities.Wallet in project robozonky by RoboZonky.
the class SellingTest method mockApi.
private static Zonky mockApi() {
final Zonky zonky = mock(Zonky.class);
when(zonky.getWallet()).thenReturn(new Wallet(BigDecimal.TEN, BigDecimal.ZERO));
when(zonky.getLoan(anyInt())).thenReturn(Loan.custom().build());
return zonky;
}
use of com.github.robozonky.api.remote.entities.Wallet in project robozonky by RoboZonky.
the class SessionTest method mockZonky.
private static Zonky mockZonky(final BigDecimal balance) {
final Zonky zonky = mock(Zonky.class);
when(zonky.getWallet()).thenReturn(new Wallet(balance, balance));
return zonky;
}
Aggregations