@Test void resolveAuthConfirmationCodeRedirectUri_code_null_or_empty() { String result = service.resolveAuthConfirmationCodeRedirectUri(URI, null); assertThat(result).isEqualTo(URI); }
@Override public String resolveAuthConfirmationCodeRedirectUri(String redirectUri, String code) { if (StringUtils.isNotBlank(code)) { String paramPrefix = redirectUri.contains("?") ? "&" : "?"; return redirectUri + paramPrefix + "authConfirmationCode=" + code; } return redirectUri; }
AuthorizationServiceImpl implements AuthorizationService { @Override public String resolveAuthConfirmationCodeRedirectUri(String redirectUri, String code) { if (StringUtils.isNotBlank(code)) { String paramPrefix = redirectUri.contains("?") ? "&" : "?"; return redirectUri + paramPrefix + "authConfirmationCode=" + code; } return redirectUri; } }
AuthorizationServiceImpl implements AuthorizationService { @Override public String resolveAuthConfirmationCodeRedirectUri(String redirectUri, String code) { if (StringUtils.isNotBlank(code)) { String paramPrefix = redirectUri.contains("?") ? "&" : "?"; return redirectUri + paramPrefix + "authConfirmationCode=" + code; } return redirectUri; }  }
AuthorizationServiceImpl implements AuthorizationService { @Override public String resolveAuthConfirmationCodeRedirectUri(String redirectUri, String code) { if (StringUtils.isNotBlank(code)) { String paramPrefix = redirectUri.contains("?") ? "&" : "?"; return redirectUri + paramPrefix + "authConfirmationCode=" + code; } return redirectUri; }  @Override SCALoginResponseTO login(String login, String pin); @Override String resolveAuthConfirmationCodeRedirectUri(String redirectUri, String code); }
AuthorizationServiceImpl implements AuthorizationService { @Override public String resolveAuthConfirmationCodeRedirectUri(String redirectUri, String code) { if (StringUtils.isNotBlank(code)) { String paramPrefix = redirectUri.contains("?") ? "&" : "?"; return redirectUri + paramPrefix + "authConfirmationCode=" + code; } return redirectUri; }  @Override SCALoginResponseTO login(String login, String pin); @Override String resolveAuthConfirmationCodeRedirectUri(String redirectUri, String code);  }