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, setupServletContext
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify
public EnhancedMockHttpSession()
public boolean isNew()
isNew
in interface HttpSession
isNew
in class com.mockobjects.servlet.MockHttpSession
public void setMaxInactiveInterval(int maxInactiveInterval)
setMaxInactiveInterval
in interface HttpSession
setMaxInactiveInterval
in class com.mockobjects.servlet.MockHttpSession
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface HttpSession
getMaxInactiveInterval
in class com.mockobjects.servlet.MockHttpSession
public Object getAttribute(String attributeName)
getAttribute
in interface HttpSession
getAttribute
in class com.mockobjects.servlet.MockHttpSession
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.