@Test void updateAccountAccess() { when(accountMapper.toAccountAccessTO(any())).thenReturn(getAccountAccessTO()); when(userMgmtStaffRestClient.updateAccountAccessForUser(any(), any())).thenAnswer(i -> ResponseEntity.ok().build()); ResponseEntity<Void> response = accountsController.updateAccountAccess(getAccountAccess()); assertThat(response.getStatusCode().is2xxSuccessful()).isTrue(); verify(accountMapper, times(1)).toAccountAccessTO(getAccountAccess()); }
@Override public ResponseEntity<Void> updateAccountAccess(AccountAccess accountAccess) { return userMgmtStaffRestClient.updateAccountAccessForUser(accountAccess.getId(), accountMapper.toAccountAccessTO(accountAccess)); }
TppAccountsController implements TppAccountsRestApi { @Override public ResponseEntity<Void> updateAccountAccess(AccountAccess accountAccess) { return userMgmtStaffRestClient.updateAccountAccessForUser(accountAccess.getId(), accountMapper.toAccountAccessTO(accountAccess)); } }
TppAccountsController implements TppAccountsRestApi { @Override public ResponseEntity<Void> updateAccountAccess(AccountAccess accountAccess) { return userMgmtStaffRestClient.updateAccountAccessForUser(accountAccess.getId(), accountMapper.toAccountAccessTO(accountAccess)); }  }
TppAccountsController implements TppAccountsRestApi { @Override public ResponseEntity<Void> updateAccountAccess(AccountAccess accountAccess) { return userMgmtStaffRestClient.updateAccountAccessForUser(accountAccess.getId(), accountMapper.toAccountAccessTO(accountAccess)); }  @Override ResponseEntity<Void> createAccount(String userId, DepositAccount account); @Override ResponseEntity<Void> updateAccountAccess(AccountAccess accountAccess); @Override ResponseEntity<List<AccountDetailsTO>> getAllAccounts(); @Override ResponseEntity<CustomPageImpl<AccountDetailsTO>> getAllAccounts(String queryParam, int page, int size); @Override ResponseEntity<AccountDetailsTO> getAccountDetailsByIban(String iban); @Override ResponseEntity<AccountDetailsTO> getSingleAccount(String accountId); @Override ResponseEntity<AccountReport> accountReport(String accountId); @Override ResponseEntity<Void> depositCash(String accountId, AmountTO amount); @Override ResponseEntity<Resource> downloadAccountTemplate(); @Override ResponseEntity<Boolean> changeStatus(String accountId); }
TppAccountsController implements TppAccountsRestApi { @Override public ResponseEntity<Void> updateAccountAccess(AccountAccess accountAccess) { return userMgmtStaffRestClient.updateAccountAccessForUser(accountAccess.getId(), accountMapper.toAccountAccessTO(accountAccess)); }  @Override ResponseEntity<Void> createAccount(String userId, DepositAccount account); @Override ResponseEntity<Void> updateAccountAccess(AccountAccess accountAccess); @Override ResponseEntity<List<AccountDetailsTO>> getAllAccounts(); @Override ResponseEntity<CustomPageImpl<AccountDetailsTO>> getAllAccounts(String queryParam, int page, int size); @Override ResponseEntity<AccountDetailsTO> getAccountDetailsByIban(String iban); @Override ResponseEntity<AccountDetailsTO> getSingleAccount(String accountId); @Override ResponseEntity<AccountReport> accountReport(String accountId); @Override ResponseEntity<Void> depositCash(String accountId, AmountTO amount); @Override ResponseEntity<Resource> downloadAccountTemplate(); @Override ResponseEntity<Boolean> changeStatus(String accountId);  }