@Test void updatePassword() { when(adminRestClient.updatePassword(anyString(), anyString())).thenReturn(ResponseEntity.ok().build()); ResponseEntity<Void> result = controller.updatePassword("TPP", "pin"); assertEquals(HttpStatus.OK, result.getStatusCode()); }
@Override public ResponseEntity<Void> updatePassword(String tppId, String password) { return adminRestClient.updatePassword(tppId, password); }
TppAdminController implements TppAdminRestApi { @Override public ResponseEntity<Void> updatePassword(String tppId, String password) { return adminRestClient.updatePassword(tppId, password); } }
TppAdminController implements TppAdminRestApi { @Override public ResponseEntity<Void> updatePassword(String tppId, String password) { return adminRestClient.updatePassword(tppId, password); }  }
TppAdminController implements TppAdminRestApi { @Override public ResponseEntity<Void> updatePassword(String tppId, String password) { return adminRestClient.updatePassword(tppId, password); }  @Override ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String tppId, String tppLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size); @Override ResponseEntity<Void> user(UserTO user); @Override ResponseEntity<CustomPageImpl<AccountDetailsExtendedTO>> accounts(String countryCode, String tppId, String tppLogin, String ibanParam, Boolean isBlocked, int page, int size); @Override ResponseEntity<Void> register(User user, String tppId); @Override ResponseEntity<Void> admin(User user); @Override ResponseEntity<CustomPageImpl<UserTO>> admins(int page, int size); @Override ResponseEntity<Void> remove(String tppId); @Override ResponseEntity<Void> updatePassword(String tppId, String password); @Override ResponseEntity<Boolean> changeStatus(String userId); }
TppAdminController implements TppAdminRestApi { @Override public ResponseEntity<Void> updatePassword(String tppId, String password) { return adminRestClient.updatePassword(tppId, password); }  @Override ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String tppId, String tppLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size); @Override ResponseEntity<Void> user(UserTO user); @Override ResponseEntity<CustomPageImpl<AccountDetailsExtendedTO>> accounts(String countryCode, String tppId, String tppLogin, String ibanParam, Boolean isBlocked, int page, int size); @Override ResponseEntity<Void> register(User user, String tppId); @Override ResponseEntity<Void> admin(User user); @Override ResponseEntity<CustomPageImpl<UserTO>> admins(int page, int size); @Override ResponseEntity<Void> remove(String tppId); @Override ResponseEntity<Void> updatePassword(String tppId, String password); @Override ResponseEntity<Boolean> changeStatus(String userId);  }