com.mockobjects.servlet

Class MockHttpSession

Implemented Interfaces:
HttpSession, Verifiable

public class MockHttpSession
extends MockObject
implements HttpSession, Verifiable

Method Summary

Object
getAttribute(String anAttributeName)
Enumeration
getAttributeNames()
long
getCreationTime()
String
getId()
long
getLastAccessedTime()
int
getMaxInactiveInterval()
ServletContext
getServletContext()
HttpSessionContext
getSessionContext()
Object
getValue(String arg1)
String[]
getValueNames()
void
invalidate()
boolean
isNew()
void
putValue(String arg1, Object arg2)
void
removeAttribute(String anAttributeName)
void
removeValue(String arg1)
void
setAttribute(String aKey, Object aValue)
void
setExpectedAttribute(String aKey, Object aValue)
void
setExpectedRemoveAttribute(String anAttributeName)
void
setMaxInactiveInterval(int arg1)
void
setupGetAttribute(String key, Object value)
void
setupGetAttributeNames(Enumeration attributeNames)
void
setupServletContext(ServletContext servletContext)

Methods inherited from class com.mockobjects.MockObject

notImplemented, notYetImplemented, verify

Method Details

getAttribute

public Object getAttribute(String anAttributeName)

getAttributeNames

public Enumeration getAttributeNames()

getCreationTime

public long getCreationTime()

getId

public String getId()

getLastAccessedTime

public long getLastAccessedTime()

getMaxInactiveInterval

public int getMaxInactiveInterval()

getServletContext

public ServletContext getServletContext()

getSessionContext

public HttpSessionContext getSessionContext()

getValue

public Object getValue(String arg1)

getValueNames

public String[] getValueNames()

invalidate

public void invalidate()

isNew

public boolean isNew()

putValue

public void putValue(String arg1,
                     Object arg2)

removeAttribute

public void removeAttribute(String anAttributeName)

removeValue

public void removeValue(String arg1)

setAttribute

public void setAttribute(String aKey,
                         Object aValue)

setExpectedAttribute

public void setExpectedAttribute(String aKey,
                                 Object aValue)

setExpectedRemoveAttribute

public void setExpectedRemoveAttribute(String anAttributeName)

setMaxInactiveInterval

public void setMaxInactiveInterval(int arg1)

setupGetAttribute

public void setupGetAttribute(String key,
                              Object value)

setupGetAttributeNames

public void setupGetAttributeNames(Enumeration attributeNames)

setupServletContext

public void setupServletContext(ServletContext servletContext)

Copyright © 2002 Mock Objects. All Rights Reserved.