@Test void transactionsPaged() { when(aisService.getTransactions(any(), any(), any(), anyInt(), anyInt())).thenReturn(new CustomPageImpl<>()); ResponseEntity<CustomPageImpl<TransactionTO>> response = obaAisController.transactions(ACCOUNT_ID, LocalDate.now().minusDays(2), LocalDate.now(), 0, 15); assertTrue(response.getStatusCode().is2xxSuccessful()); verify(aisService, times(1)).getTransactions(ACCOUNT_ID, LocalDate.now().minusDays(2), LocalDate.now(), 0, 15); }
@Override public ResponseEntity<List<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo) { return ResponseEntity.ok(aisService.getTransactions(accountId, dateFrom, dateTo)); }
ObaAisController implements ObaAisApi { @Override public ResponseEntity<List<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo) { return ResponseEntity.ok(aisService.getTransactions(accountId, dateFrom, dateTo)); } }
ObaAisController implements ObaAisApi { @Override public ResponseEntity<List<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo) { return ResponseEntity.ok(aisService.getTransactions(accountId, dateFrom, dateTo)); }  }
ObaAisController implements ObaAisApi { @Override public ResponseEntity<List<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo) { return ResponseEntity.ok(aisService.getTransactions(accountId, dateFrom, dateTo)); }  @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<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo) { return ResponseEntity.ok(aisService.getTransactions(accountId, dateFrom, dateTo)); }  @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();  }