Class SessionManagerBaseTestCase
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.session.impl.testing.SessionManagerBaseTestCase
-
- Direct Known Subclasses:
DestroySessionsTest,DetectIdentitySwitchTest,PopulateSessionContextTest,ProcessLogoutTest,StorageBackedSessionManagerTest,UpdateSessionWithAuthenticationResultTest,UpdateSessionWithSPSessionTest
public class SessionManagerBaseTestCase extends org.opensaml.core.testing.OpenSAMLInitBaseTestCaseBase class for tests requiring a SessionManager component to be set up.
-
-
Field Summary
Fields Modifier and Type Field Description protected ThreadLocalHttpServletRequestProxyrequestProxyprotected ThreadLocalHttpServletResponseProxyresponseProxyprotected net.shibboleth.idp.session.impl.StorageBackedSessionManagersessionManagerprotected MemoryStorageServicestorageService
-
Constructor Summary
Constructors Constructor Description SessionManagerBaseTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustProperties()Allows override of component properties before initializing them.protected javax.servlet.http.CookiecreateSession(String principalName)Creates a session and returns the cookie established by the SessionManager for it.voidsetUp()voidtearDown()
-
-
-
Field Detail
-
storageService
protected MemoryStorageService storageService
-
sessionManager
protected net.shibboleth.idp.session.impl.StorageBackedSessionManager sessionManager
-
requestProxy
protected ThreadLocalHttpServletRequestProxy requestProxy
-
responseProxy
protected ThreadLocalHttpServletResponseProxy responseProxy
-
-
Method Detail
-
setUp
@BeforeClass public void setUp() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
adjustProperties
protected void adjustProperties() throws ComponentInitializationExceptionAllows override of component properties before initializing them.- Throws:
ComponentInitializationException- ...
-
tearDown
@AfterClass public void tearDown()
-
createSession
protected javax.servlet.http.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- ...
-
-