/forgerock/openam-v13/openam-sts/openam-token-service-sts/src/test/java/org/forgerock/openam/sts/tokengeneration/saml2/ |
H A D | RestSTSInstanceStateProviderTest.java | 64 private static final String DEPLOYMENT_URL_ELEMENT = "bobo/inst1"; field in class:RestSTSInstanceStateProviderTest 96 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 97 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig); 103 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 104 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); //initializes the cache with the mocked config 105 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM); 107 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null); 108 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig); 111 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM); 123 .uriElement(DEPLOYMENT_URL_ELEMENT) [all...] |
H A D | RestSTSInstanceStateServiceListenerTest.java | 65 private static final String DEPLOYMENT_URL_ELEMENT = "bobo/instanceOne"; field in class:RestSTSInstanceStateServiceListenerTest 105 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 107 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); 108 //this should invalidate the cache. Lower-case is necessary on the DEPLOYMENT_URL_ELEMENT as 111 "irrelevant", "irrelevant", DEPLOYMENT_URL_ELEMENT.toLowerCase(), ServiceListener.REMOVED); 114 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig1); 115 RestSTSInstanceConfig providerConfig = provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(); 129 .uriElement(DEPLOYMENT_URL_ELEMENT)
|
H A D | SoapSTSInstanceStateProviderTest.java | 66 private static final String DEPLOYMENT_URL_ELEMENT = "bobo/inst1"; field in class:SoapSTSInstanceStateProviderTest 99 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 100 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig); 106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 107 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); //initializes the cache with the mocked config 108 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM); 110 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null); 111 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig); 114 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM); 129 .uriElement(DEPLOYMENT_URL_ELEMENT) [all...] |
H A D | SoapSTSInstanceStateServiceListenerTest.java | 66 private static final String DEPLOYMENT_URL_ELEMENT = "bobo/instOne"; field in class:SoapSTSInstanceStateServiceListenerTest 106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 108 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); 109 //this should invalidate the cache. Lower-case is necessary on the DEPLOYMENT_URL_ELEMENT as 112 "irrelevant", "irrelevant", DEPLOYMENT_URL_ELEMENT.toLowerCase(), ServiceListener.REMOVED); 115 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig1); 116 SoapSTSInstanceConfig providerConfig = provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(); 133 .uriElement(DEPLOYMENT_URL_ELEMENT)
|
/forgerock/openam/openam-sts/openam-token-service-sts/src/test/java/org/forgerock/openam/sts/tokengeneration/saml2/ |
H A D | RestSTSInstanceStateProviderTest.java | 64 private static final String DEPLOYMENT_URL_ELEMENT = "bobo/inst1"; field in class:RestSTSInstanceStateProviderTest 96 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 97 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig); 103 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 104 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); //initializes the cache with the mocked config 105 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM); 107 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null); 108 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig); 111 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM); 123 .uriElement(DEPLOYMENT_URL_ELEMENT) [all...] |
H A D | RestSTSInstanceStateServiceListenerTest.java | 65 private static final String DEPLOYMENT_URL_ELEMENT = "bobo/instanceOne"; field in class:RestSTSInstanceStateServiceListenerTest 105 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 107 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); 108 //this should invalidate the cache. Lower-case is necessary on the DEPLOYMENT_URL_ELEMENT as 111 "irrelevant", "irrelevant", DEPLOYMENT_URL_ELEMENT.toLowerCase(), ServiceListener.REMOVED); 114 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig1); 115 RestSTSInstanceConfig providerConfig = provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(); 129 .uriElement(DEPLOYMENT_URL_ELEMENT)
|
H A D | SoapSTSInstanceStateProviderTest.java | 66 private static final String DEPLOYMENT_URL_ELEMENT = "bobo/inst1"; field in class:SoapSTSInstanceStateProviderTest 99 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 100 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig); 106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 107 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); //initializes the cache with the mocked config 108 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM); 110 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null); 111 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig); 114 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM); 129 .uriElement(DEPLOYMENT_URL_ELEMENT) [all...] |
H A D | SoapSTSInstanceStateServiceListenerTest.java | 66 private static final String DEPLOYMENT_URL_ELEMENT = "bobo/instOne"; field in class:SoapSTSInstanceStateServiceListenerTest 106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig); 108 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); 109 //this should invalidate the cache. Lower-case is necessary on the DEPLOYMENT_URL_ELEMENT as 112 "irrelevant", "irrelevant", DEPLOYMENT_URL_ELEMENT.toLowerCase(), ServiceListener.REMOVED); 115 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig1); 116 SoapSTSInstanceConfig providerConfig = provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(); 133 .uriElement(DEPLOYMENT_URL_ELEMENT)
|
/forgerock/openam-v13/openam-shared/src/main/java/org/forgerock/openam/shared/sts/ |
H A D | SharedSTSConstants.java | 237 public static final String DEPLOYMENT_URL_ELEMENT = "deployment-url-element"; field in class:SharedSTSConstants
|
/forgerock/openam/openam-shared/src/main/java/org/forgerock/openam/shared/sts/ |
H A D | SharedSTSConstants.java | 237 public static final String DEPLOYMENT_URL_ELEMENT = "deployment-url-element"; field in class:SharedSTSConstants
|