public class EnhancedMockHttpSession extends com.mockobjects.servlet.MockHttpSession
| Constructor and Description |
|---|
EnhancedMockHttpSession() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attributeName)
The underlying mock objects throws an Assert failure if we don't have
an attribute.
|
int |
getMaxInactiveInterval() |
boolean |
isNew()
The default MockHttpSession doesn't implement this method.
|
void |
setMaxInactiveInterval(int maxInactiveInterval) |
getAttributeNames, getCreationTime, getId, getLastAccessedTime, getServletContext, getSessionContext, getValue, getValueNames, invalidate, putValue, removeAttribute, removeValue, setAttribute, setExpectedAttribute, setExpectedRemoveAttribute, setupGetAttribute, setupGetAttributeNames, setupServletContextassertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verifypublic EnhancedMockHttpSession()
public boolean isNew()
isNew in interface HttpSessionisNew in class com.mockobjects.servlet.MockHttpSessionpublic void setMaxInactiveInterval(int maxInactiveInterval)
setMaxInactiveInterval in interface HttpSessionsetMaxInactiveInterval in class com.mockobjects.servlet.MockHttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface HttpSessiongetMaxInactiveInterval in class com.mockobjects.servlet.MockHttpSessionpublic Object getAttribute(String attributeName)
getAttribute in interface HttpSessiongetAttribute in class com.mockobjects.servlet.MockHttpSessionCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.