public abstract class TestSessionsBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
port |
protected static DeltaSessionManager |
sessionManager |
Constructor and Description |
---|
TestSessionsBase() |
Modifier and Type | Method and Description |
---|---|
void |
setup()
Reset some data
|
static void |
setupServer(DeltaSessionManager manager) |
static void |
teardownClass() |
void |
testBasicRegion()
Test that a session attribute gets set into the region too.
|
void |
testCallback()
Test callback functionality.
|
void |
testCommitSessionValveInvalidSession() |
void |
testExtraSessionsNotCreated()
Test for issue #45 Sessions are being created for every request
|
void |
testInvalidate()
Test that invalidating a session makes it's attributes inaccessible.
|
void |
testIsNew()
Test that calling session.isNew() works for the initial as well as subsequent requests.
|
void |
testLastAccessedTime()
Test for issue #46 lastAccessedTime is not updated at the start of the request, but only at the
end.
|
void |
testMultipleAttributeUpdates()
Test that multiple attribute updates, within the same request result in only the latest one
being effective.
|
void |
testRegionInvalidate()
Test that a session attribute gets removed from the region when the session is invalidated.
|
void |
testRemoveAttribute()
Test that removing a session attribute also removes it from the region
|
void |
testSanity()
Check that the basics are working
|
void |
testSessionExpiration1()
Test setting the session expiration
|
void |
testSessionExpiration2()
Test setting the session expiration via a property change as would happen under normal
deployment conditions.
|
void |
testSessionExpirationByContainer()
Test expiration of a session by the tomcat container, rather than gemfire expiration
|
void |
testSessionPersists1()
Check that our session persists.
|
protected static DeltaSessionManager sessionManager
protected static int port
public static void setupServer(DeltaSessionManager manager) throws java.lang.Exception
java.lang.Exception
public static void teardownClass() throws java.lang.Exception
java.lang.Exception
public void setup() throws java.lang.Exception
java.lang.Exception
public void testSanity() throws java.lang.Exception
java.lang.Exception
public void testCallback() throws java.lang.Exception
java.lang.Exception
public void testIsNew() throws java.lang.Exception
java.lang.Exception
public void testSessionPersists1() throws java.lang.Exception
java.lang.Exception
public void testInvalidate() throws java.lang.Exception
java.lang.Exception
public void testSessionExpiration1() throws java.lang.Exception
java.lang.Exception
public void testSessionExpiration2() throws java.lang.Exception
java.lang.Exception
public void testSessionExpirationByContainer() throws java.lang.Exception
java.lang.Exception
public void testRemoveAttribute() throws java.lang.Exception
java.lang.Exception
public void testBasicRegion() throws java.lang.Exception
java.lang.Exception
public void testRegionInvalidate() throws java.lang.Exception
java.lang.Exception
public void testMultipleAttributeUpdates() throws java.lang.Exception
java.lang.Exception
public void testCommitSessionValveInvalidSession() throws java.lang.Exception
java.lang.Exception
public void testExtraSessionsNotCreated() throws java.lang.Exception
java.lang.Exception
public void testLastAccessedTime() throws java.lang.Exception
java.lang.Exception