Searched defs:mockConfigStore (Results 1 - 8 of 8) sorted by relevance

/forgerock/openam-v13/openam-sts/openam-token-service-sts/src/test/java/org/forgerock/openam/sts/tokengeneration/saml2/
H A DRestSTSInstanceStateProviderTest.java67 private RestSTSInstanceConfigStore mockConfigStore; field in class:RestSTSInstanceStateProviderTest
72 mockConfigStore = mock(RestSTSInstanceConfigStore.class);
73 bind(new TypeLiteral<STSInstanceConfigStore<RestSTSInstanceConfig>>(){}).toInstance(mockConfigStore);
96 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
103 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
105 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
107 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null);
109 //the mockConfigStore should only have been called once, with the first invocation of provider.getSTSInstanceState -
111 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
H A DRestSTSInstanceStateServiceListenerTest.java68 private RestSTSInstanceConfigStore mockConfigStore; field in class:RestSTSInstanceStateServiceListenerTest
74 mockConfigStore = mock(RestSTSInstanceConfigStore.class);
75 bind(new TypeLiteral<STSInstanceConfigStore<RestSTSInstanceConfig>>(){}).toInstance(mockConfigStore);
105 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
114 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig1);
H A DSoapSTSInstanceStateProviderTest.java70 private SoapSTSInstanceConfigStore mockConfigStore; field in class:SoapSTSInstanceStateProviderTest
75 mockConfigStore = mock(SoapSTSInstanceConfigStore.class);
76 bind(new TypeLiteral<STSInstanceConfigStore<SoapSTSInstanceConfig>>(){}).toInstance(mockConfigStore);
99 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
108 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
110 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null);
112 //the mockConfigStore should only have been called once, with the first invocation of provider.getSTSInstanceState -
114 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
H A DSoapSTSInstanceStateServiceListenerTest.java69 private SoapSTSInstanceConfigStore mockConfigStore; field in class:SoapSTSInstanceStateServiceListenerTest
75 mockConfigStore = mock(SoapSTSInstanceConfigStore.class);
76 bind(new TypeLiteral<STSInstanceConfigStore<SoapSTSInstanceConfig>>(){}).toInstance(mockConfigStore);
106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
115 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig1);
/forgerock/openam/openam-sts/openam-token-service-sts/src/test/java/org/forgerock/openam/sts/tokengeneration/saml2/
H A DRestSTSInstanceStateProviderTest.java67 private RestSTSInstanceConfigStore mockConfigStore; field in class:RestSTSInstanceStateProviderTest
72 mockConfigStore = mock(RestSTSInstanceConfigStore.class);
73 bind(new TypeLiteral<STSInstanceConfigStore<RestSTSInstanceConfig>>(){}).toInstance(mockConfigStore);
96 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
103 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
105 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
107 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null);
109 //the mockConfigStore should only have been called once, with the first invocation of provider.getSTSInstanceState -
111 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
H A DRestSTSInstanceStateServiceListenerTest.java68 private RestSTSInstanceConfigStore mockConfigStore; field in class:RestSTSInstanceStateServiceListenerTest
74 mockConfigStore = mock(RestSTSInstanceConfigStore.class);
75 bind(new TypeLiteral<STSInstanceConfigStore<RestSTSInstanceConfig>>(){}).toInstance(mockConfigStore);
105 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
114 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig1);
H A DSoapSTSInstanceStateProviderTest.java70 private SoapSTSInstanceConfigStore mockConfigStore; field in class:SoapSTSInstanceStateProviderTest
75 mockConfigStore = mock(SoapSTSInstanceConfigStore.class);
76 bind(new TypeLiteral<STSInstanceConfigStore<SoapSTSInstanceConfig>>(){}).toInstance(mockConfigStore);
99 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
108 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
110 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null);
112 //the mockConfigStore should only have been called once, with the first invocation of provider.getSTSInstanceState -
114 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
H A DSoapSTSInstanceStateServiceListenerTest.java69 private SoapSTSInstanceConfigStore mockConfigStore; field in class:SoapSTSInstanceStateServiceListenerTest
75 mockConfigStore = mock(SoapSTSInstanceConfigStore.class);
76 bind(new TypeLiteral<STSInstanceConfigStore<SoapSTSInstanceConfig>>(){}).toInstance(mockConfigStore);
106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
115 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig1);

Completed in 33 milliseconds