@Test void changeStatus() { when(accountMgmtStaffRestClient.changeStatus(anyString())).thenReturn(ResponseEntity.ok(true)); ResponseEntity<Boolean> result = accountsController.changeStatus(ACCOUNT_ID); assertEquals(ResponseEntity.ok(true), result); }
@Override public ResponseEntity<Boolean> changeStatus(String accountId) { return accountMgmtStaffRestClient.changeStatus(accountId); }
TppAccountsController implements TppAccountsRestApi { @Override public ResponseEntity<Boolean> changeStatus(String accountId) { return accountMgmtStaffRestClient.changeStatus(accountId); } }
TppAccountsController implements TppAccountsRestApi { @Override public ResponseEntity<Boolean> changeStatus(String accountId) { return accountMgmtStaffRestClient.changeStatus(accountId); }  }
TppAccountsController implements TppAccountsRestApi { @Override public ResponseEntity<Boolean> changeStatus(String accountId) { return accountMgmtStaffRestClient.changeStatus(accountId); }  @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<Boolean> changeStatus(String accountId) { return accountMgmtStaffRestClient.changeStatus(accountId); }  @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);  }