@Test public void getRpId_without_rpId_and_rpIdProvider_set(){ MockHttpServletRequest request = new MockHttpServletRequest(); request.setScheme("https"); request.setServerName("origin.example.com"); request.setServerPort(443); Challenge mockChallenge = new DefaultChallenge(); when(challengeRepository.loadOrGenerateChallenge(request)).thenReturn(mockChallenge); ServerPropertyProviderImpl serverPropertyProviderImpl = new ServerPropertyProviderImpl(challengeRepository); assertThat(serverPropertyProviderImpl.getRpId(request)).isEqualTo("origin.example.com"); }
public String getRpId() { return rpId; }
ServerPropertyProviderImpl implements ServerPropertyProvider { public String getRpId() { return rpId; } }
ServerPropertyProviderImpl implements ServerPropertyProvider { public String getRpId() { return rpId; } ServerPropertyProviderImpl(RpIdProvider rpIdProvider, ChallengeRepository challengeRepository);  ServerPropertyProviderImpl(ChallengeRepository challengeRepository); }
ServerPropertyProviderImpl implements ServerPropertyProvider { public String getRpId() { return rpId; } ServerPropertyProviderImpl(RpIdProvider rpIdProvider, ChallengeRepository challengeRepository);  ServerPropertyProviderImpl(ChallengeRepository challengeRepository); ServerProperty provide(HttpServletRequest request); String getRpId(); void setRpId(String rpId); RpIdProvider getRpIdProvider(); void setRpIdProvider(RpIdProvider rpIdProvider); }
ServerPropertyProviderImpl implements ServerPropertyProvider { public String getRpId() { return rpId; } ServerPropertyProviderImpl(RpIdProvider rpIdProvider, ChallengeRepository challengeRepository);  ServerPropertyProviderImpl(ChallengeRepository challengeRepository); ServerProperty provide(HttpServletRequest request); String getRpId(); void setRpId(String rpId); RpIdProvider getRpIdProvider(); void setRpIdProvider(RpIdProvider rpIdProvider);  }