Package net.shibboleth.idp.session.impl
Class SessionManagerBaseTestCase
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
net.shibboleth.idp.session.impl.SessionManagerBaseTestCase
- Direct Known Subclasses:
DestroySessionsTest,DetectIdentitySwitchTest,PopulateSessionContextTest,ProcessLogoutTest,StorageBackedSessionManagerTest,UpdateSessionWithAuthenticationResultTest,UpdateSessionWithSPSessionTest
Base class for tests requiring a SessionManager component to be set up.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.shibboleth.idp.session.impl.StorageBackedSessionManagerprotected MemoryStorageService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAllows override of component properties before initializing them.protected CookiecreateSession(String principalName) Creates a session and returns the cookie established by the SessionManager for it.protected MockHttpServletRequestreturn a null safeMockHttpServletRequest.protected MockHttpServletResponsereturn a null safeMockHttpServletResponse.voidsetUp()voidtearDown()Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Field Details
-
storageService
-
sessionManager
@Nonnull protected net.shibboleth.idp.session.impl.StorageBackedSessionManager sessionManager
-
-
Constructor Details
-
SessionManagerBaseTestCase
public SessionManagerBaseTestCase()
-
-
Method Details
-
setUp
- Throws:
ComponentInitializationException
-
adjustProperties
Allows override of component properties before initializing them.- Throws:
ComponentInitializationException- ...
-
tearDown
@AfterClass public void tearDown() -
createSession
@Nonnull protected Cookie createSession(@Nonnull @NotEmpty String principalName) throws SessionException Creates a session and returns the cookie established by the SessionManager for it.- Parameters:
principalName- name of principal for session- Returns:
- the cookie established by the SessionManager
- Throws:
SessionException- ...
-
getRequest
return a null safeMockHttpServletRequest.- Returns:
- the request
-
getResponse
return a null safeMockHttpServletResponse.- Returns:
- the response
-