Package com.mockobjects.servlet
Class MockHttpSession
- java.lang.Object
-
- com.mockobjects.MockObject
-
- com.mockobjects.servlet.MockHttpSession
-
- All Implemented Interfaces:
Verifiable
public class MockHttpSession extends MockObject implements Verifiable
-
-
Constructor Summary
Constructors Constructor Description MockHttpSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAttribute(java.lang.String anAttributeName)java.util.EnumerationgetAttributeNames()longgetCreationTime()java.lang.StringgetId()longgetLastAccessedTime()intgetMaxInactiveInterval()ServletContextgetServletContext()HttpSessionContextgetSessionContext()java.lang.ObjectgetValue(java.lang.String arg1)java.lang.String[]getValueNames()voidinvalidate()booleanisNew()voidputValue(java.lang.String arg1, java.lang.Object arg2)voidremoveAttribute(java.lang.String anAttributeName)voidremoveValue(java.lang.String arg1)voidsetAttribute(java.lang.String aKey, java.lang.Object aValue)voidsetExpectedAttribute(java.lang.String aKey, java.lang.Object aValue)voidsetExpectedRemoveAttribute(java.lang.String anAttributeName)voidsetMaxInactiveInterval(int arg1)voidsetupGetAttribute(java.lang.String key, java.lang.Object value)voidsetupGetAttributeNames(java.util.Enumeration attributeNames)voidsetupServletContext(ServletContext servletContext)-
Methods inherited from class com.mockobjects.MockObject
notImplemented, notYetImplemented, verify
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.mockobjects.Verifiable
verify
-
-
-
-
Method Detail
-
getAttribute
public java.lang.Object getAttribute(java.lang.String anAttributeName)
-
setupGetAttributeNames
public void setupGetAttributeNames(java.util.Enumeration attributeNames)
-
getAttributeNames
public java.util.Enumeration getAttributeNames()
-
getCreationTime
public long getCreationTime()
-
getId
public java.lang.String getId()
-
getLastAccessedTime
public long getLastAccessedTime()
-
getMaxInactiveInterval
public int getMaxInactiveInterval()
-
getSessionContext
public HttpSessionContext getSessionContext()
-
setupServletContext
public void setupServletContext(ServletContext servletContext)
-
getServletContext
public ServletContext getServletContext()
-
getValue
public java.lang.Object getValue(java.lang.String arg1)
-
getValueNames
public java.lang.String[] getValueNames()
-
invalidate
public void invalidate()
-
isNew
public boolean isNew()
-
putValue
public void putValue(java.lang.String arg1, java.lang.Object arg2)
-
setExpectedRemoveAttribute
public void setExpectedRemoveAttribute(java.lang.String anAttributeName)
-
removeAttribute
public void removeAttribute(java.lang.String anAttributeName)
-
removeValue
public void removeValue(java.lang.String arg1)
-
setupGetAttribute
public void setupGetAttribute(java.lang.String key, java.lang.Object value)
-
setAttribute
public void setAttribute(java.lang.String aKey, java.lang.Object aValue)
-
setExpectedAttribute
public void setExpectedAttribute(java.lang.String aKey, java.lang.Object aValue)
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int arg1)
-
-