Searched refs:mockSessionService (Results 1 - 17 of 17) sorted by relevance

/forgerock/openam-v13/openam-core/src/test/java/com/iplanet/dpro/session/service/
H A DInternalSessionTest.java34 private SessionService mockSessionService; field in class:InternalSessionTest
51 session.setSessionServiceDependencies(mockSessionService, mockSessionServiceConfig, mockSessionLogging,
73 verify(mockSessionService, never()).saveForFailover(session);
88 verify(mockSessionService).saveForFailover(session);
103 verify(mockSessionService).saveForFailover(session);
116 verify(mockSessionService).deleteFromRepository(session.getID());
/forgerock/openam/openam-core/src/test/java/com/sun/identity/authentication/service/
H A DDefaultSessionActivatorTest.java47 private SessionService mockSessionService; field in class:DefaultSessionActivatorTest
63 given(mockSessionService.newInternalSession(eq(ORGDN), eq(false)))
74 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null);
77 verify(mockSessionService).newInternalSession(eq(ORGDN), anyBoolean());
86 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null);
102 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null);
119 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null);
122 verify(mockSessionService).destroyAuthenticationSession(authSessionID);
131 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null);
143 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSessio
[all...]
H A DNoSessionActivatorTest.java35 private SessionService mockSessionService; field in class:NoSessionActivatorTest
52 NoSessionActivator.INSTANCE.activateSession(null, mockSessionService, mockSession, null);
55 verify(mockSessionService).destroyAuthenticationSession(sid);
60 assertTrue(NoSessionActivator.INSTANCE.activateSession(null, mockSessionService, mockSession, null));
H A DStatelessSessionActivatorTest.java39 private SessionService mockSessionService; field in class:StatelessSessionActivatorTest
60 testActivator.createSession(mockSessionService, mockLoginState);
63 verify(mockSessionService).newInternalSession(orgDn, true);
/forgerock/openam-v13/openam-core/src/test/java/com/sun/identity/authentication/service/
H A DNoSessionActivatorTest.java34 private SessionService mockSessionService; field in class:NoSessionActivatorTest
51 NoSessionActivator.INSTANCE.activateSession(null, mockSessionService, mockSession, null, null);
54 verify(mockSessionService).destroyInternalSession(sid);
59 assertTrue(NoSessionActivator.INSTANCE.activateSession(null, mockSessionService, mockSession, null, null));
H A DDefaultSessionActivatorTest.java46 private SessionService mockSessionService; field in class:DefaultSessionActivatorTest
62 given(mockSessionService.newInternalSession(eq(ORGDN), any(HttpSession.class), eq(false)))
73 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null, null);
76 verify(mockSessionService).newInternalSession(eq(ORGDN), any(HttpSession.class), anyBoolean());
85 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null, null);
101 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null, null);
118 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null, null);
121 verify(mockSessionService).destroyInternalSession(authSessionID);
130 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSession, null, null);
142 DefaultSessionActivator.INSTANCE.activateSession(mockState, mockSessionService, mockAuthSessio
[all...]
H A DStatelessSessionActivatorTest.java38 private SessionService mockSessionService; field in class:StatelessSessionActivatorTest
59 testActivator.createSession(mockSessionService, mockLoginState);
62 verify(mockSessionService).newInternalSession(orgDn, null, true);
/forgerock/openam-v13/openam-core/src/test/java/com/iplanet/dpro/session/operations/
H A DServerSessionOperationStrategyTest.java44 private SessionService mockSessionService; field in class:ServerSessionOperationStrategyTest
56 mockSessionService = mock(SessionService.class);
67 mockSessionService,
87 given(mockSessionService.checkSessionLocal(any(SessionID.class))).willReturn(true);
99 given(mockSessionService.checkSessionLocal(any(SessionID.class))).willReturn(false);
102 given(mockSessionService.isReducedCrossTalkEnabled()).willReturn(false);
114 given(mockSessionService.checkSessionLocal(any(SessionID.class))).willReturn(false);
115 given(mockSessionService.isSessionFailoverEnabled()).willReturn(true);
118 given(mockSessionService.isReducedCrossTalkEnabled()).willReturn(false);
124 given(mockSessionService
[all...]
/forgerock/openam-v13/openam-core/src/test/java/com/iplanet/dpro/session/service/cluster/
H A DMultiServerClusterMonitorTest.java39 private SessionService mockSessionService; field in class:MultiServerClusterMonitorTest
47 mockSessionService = mock(SessionService.class);
60 new MultiServerClusterMonitor(mockSessionService, mockDebug, mockServiceConfig, mockServerConfig);
87 eq(mockSessionService), eq(mockServerConfig), eq(mockServiceConfig), any(Map.class), any(Map.class)))
99 mockSessionService, mockDebug, mockServiceConfig, mockServerConfig, mockFactory);
133 eq(mockSessionService), eq(mockServerConfig), eq(mockServiceConfig), any(Map.class), any(Map.class)))
150 mockSessionService, mockDebug, mockServiceConfig, mockServerConfig, mockFactory);
/forgerock/openam-v13/openam-rest/src/test/java/org/forgerock/openam/rest/authz/
H A DSpecialAndAdminUserOnlyAuthzModuleTest.java55 private SessionService mockSessionService; field in class:SpecialAndAdminUserOnlyAuthzModuleTest
66 given(mockConfig.get()).willReturn(mockSessionService);
84 given(mockSessionService.isSuperUser("test")).willReturn(true);
97 given(mockSessionService.isSuperUser("test")).willReturn(false);
H A DSTSTokenGenerationServiceAuthzModuleTest.java80 private SessionService mockSessionService; field in class:STSTokenGenerationServiceAuthzModuleTest
92 given(mockConfig.get()).willReturn(mockSessionService);
125 given(mockSessionService.isSuperUser("test")).willReturn(true);
163 given(mockSessionService.isSuperUser("test")).willReturn(true);
201 given(mockSessionService.isSuperUser("test")).willReturn(true);
239 given(mockSessionService.isSuperUser("test")).willReturn(true);
253 given(mockSessionService.isSuperUser("test")).willReturn(false);
/forgerock/openam-v13/openam-core/src/test/java/com/iplanet/dpro/session/operations/strategies/
H A DStatelessOperationsTest.java49 private SessionService mockSessionService; field in class:StatelessOperationsTest
73 null, mockSessionService, mockSessionFactory, mockSessionBlacklist, mockSessionLogging, null);
125 verify(mockSessionService).checkPermissionToDestroySession(requester, sid);
147 willThrow(ex).given(mockSessionService).checkPermissionToDestroySession(requester, sid);
H A DCTSOperationsTest.java53 private SessionService mockSessionService; field in class:CTSOperationsTest
67 mockSessionService = mock(SessionService.class);
75 ctsOperations = new CTSOperations(mockCTS, mockAdapter, mockIdFactory, mockInfoFactory, mockSessionService,
143 given(mockSessionService.checkSessionLocal(mockSessionID)).willReturn(true);
154 given(mockSessionService.checkSessionLocal(mockSessionID)).willReturn(false);
168 given(mockSessionService.checkSessionLocal(mockSessionID)).willReturn(true);
179 given(mockSessionService.checkSessionLocal(mockSessionID)).willReturn(false);
/forgerock/openam/openam-rest/src/test/java/org/forgerock/openam/rest/authz/
H A DSpecialAndAdminUserOnlyAuthzModuleTest.java55 private SessionService mockSessionService; field in class:SpecialAndAdminUserOnlyAuthzModuleTest
66 given(mockConfig.get()).willReturn(mockSessionService);
84 given(mockSessionService.isSuperUser("test")).willReturn(true);
97 given(mockSessionService.isSuperUser("test")).willReturn(false);
H A DSTSTokenGenerationServiceAuthzModuleTest.java80 private SessionService mockSessionService; field in class:STSTokenGenerationServiceAuthzModuleTest
92 given(mockConfig.get()).willReturn(mockSessionService);
125 given(mockSessionService.isSuperUser("test")).willReturn(true);
163 given(mockSessionService.isSuperUser("test")).willReturn(true);
201 given(mockSessionService.isSuperUser("test")).willReturn(true);
239 given(mockSessionService.isSuperUser("test")).willReturn(true);
253 given(mockSessionService.isSuperUser("test")).willReturn(false);
/forgerock/openam/openam-core/src/test/java/com/iplanet/dpro/session/service/
H A DInternalSessionTest.java47 @Mock private SessionService mockSessionService; field in class:InternalSessionTest
108 given(mockSessionService.isSuperUser(anyString())).willReturn(false);
268 mockSessionService,
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/cts/worker/process/
H A DSessionExpiryBatchHandlerTest.java63 @Mock private SessionService mockSessionService; field in class:SessionExpiryBatchHandlerTest
211 mockDebug, mockSessionAdapter, mockLocalOperations, eventType, latch, mockSessionService,

Completed in 216 milliseconds