@Test void sendCode() { when(resetPasswordRestClient.sendCode(any())).thenReturn(ResponseEntity.ok(getCode())); ResponseEntity<SendCode> response = tppResetPasswordController.sendCode(getResetPassword()); assertTrue(response.getStatusCode().is2xxSuccessful()); assertTrue(response.getBody().isSent()); }
@Override public ResponseEntity<SendCode> sendCode(ResetPassword resetPassword) { return resetPasswordRestClient.sendCode(resetPassword); }
TppResetPasswordController implements TppResetPasswordRestApi { @Override public ResponseEntity<SendCode> sendCode(ResetPassword resetPassword) { return resetPasswordRestClient.sendCode(resetPassword); } }
TppResetPasswordController implements TppResetPasswordRestApi { @Override public ResponseEntity<SendCode> sendCode(ResetPassword resetPassword) { return resetPasswordRestClient.sendCode(resetPassword); }  }
TppResetPasswordController implements TppResetPasswordRestApi { @Override public ResponseEntity<SendCode> sendCode(ResetPassword resetPassword) { return resetPasswordRestClient.sendCode(resetPassword); }  @Override ResponseEntity<SendCode> sendCode(ResetPassword resetPassword); @Override ResponseEntity<UpdatePassword> updatePassword(ResetPassword resetPassword); }
TppResetPasswordController implements TppResetPasswordRestApi { @Override public ResponseEntity<SendCode> sendCode(ResetPassword resetPassword) { return resetPasswordRestClient.sendCode(resetPassword); }  @Override ResponseEntity<SendCode> sendCode(ResetPassword resetPassword); @Override ResponseEntity<UpdatePassword> updatePassword(ResetPassword resetPassword);  }