use of com.github.robozonky.api.confirmations.ConfirmationProviderService in project robozonky by RoboZonky.
the class ConfirmationProviderLoaderTest method loading.
@Test
void loading() {
final String id = UUID.randomUUID().toString();
final ConfirmationProvider cp = new ConfirmationProvider() {
@Override
public boolean requestConfirmation(final RequestId auth, final int loanId, final int amount) {
return false;
}
@Override
public String getId() {
return id;
}
};
final ConfirmationProviderService cps = strategy -> Optional.of(cp);
assertThat(ConfirmationProviderLoader.load(id, Collections.singleton(cps))).contains(cp);
}
Aggregations