@Test void getPendingPeriodicPayments() { when(paymentRestClient.getPendingPeriodicPayments()).thenReturn(ResponseEntity.ok(Collections.singletonList(getPaymentTO()))); ResponseEntity<List<PaymentTO>> response = obaAisController.getPendingPeriodicPayments(); assertTrue(response.getStatusCode().is2xxSuccessful()); assertEquals(Objects.requireNonNull(response.getBody()).get(0), getPaymentTO()); verify(paymentRestClient, times(1)).getPendingPeriodicPayments(); }
@Override public ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments() { return paymentRestClient.getPendingPeriodicPayments(); }
ObaAisController implements ObaAisApi { @Override public ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments() { return paymentRestClient.getPendingPeriodicPayments(); } }
ObaAisController implements ObaAisApi { @Override public ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments() { return paymentRestClient.getPendingPeriodicPayments(); }  }
ObaAisController implements ObaAisApi { @Override public ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments() { return paymentRestClient.getPendingPeriodicPayments(); }  @Override @PreAuthorize("#userLogin == authentication.principal.login") ResponseEntity<List<AccountDetailsTO>> accounts(String userLogin); @Override ResponseEntity<AccountDetailsTO> account(String accountId); @Override ResponseEntity<List<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo); @Override ResponseEntity<CustomPageImpl<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo, int page, int size); @Override ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments(); }
ObaAisController implements ObaAisApi { @Override public ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments() { return paymentRestClient.getPendingPeriodicPayments(); }  @Override @PreAuthorize("#userLogin == authentication.principal.login") ResponseEntity<List<AccountDetailsTO>> accounts(String userLogin); @Override ResponseEntity<AccountDetailsTO> account(String accountId); @Override ResponseEntity<List<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo); @Override ResponseEntity<CustomPageImpl<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo, int page, int size); @Override ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments();  }