|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mockobjects.MockObject
com.mockobjects.servlet.MockHttpSession
org.apache.turbine.test.EnhancedMockHttpSession
public class EnhancedMockHttpSession
Extension to the basic MockHttpSession to provide some extra parameters required by Turbine.
| Constructor Summary | |
|---|---|
EnhancedMockHttpSession()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.mockobjects.servlet.MockHttpSession |
|---|
getAttributeNames, getCreationTime, getId, getLastAccessedTime, getServletContext, getSessionContext, getValue, getValueNames, invalidate, putValue, removeAttribute, removeValue, setAttribute, setExpectedAttribute, setExpectedRemoveAttribute, setupGetAttribute, setupGetAttributeNames, setupServletContext |
| Methods inherited from class com.mockobjects.MockObject |
|---|
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.mockobjects.Verifiable |
|---|
verify |
| Constructor Detail |
|---|
public EnhancedMockHttpSession()
| Method Detail |
|---|
public boolean isNew()
isNew in interface javax.servlet.http.HttpSessionisNew in class com.mockobjects.servlet.MockHttpSessionpublic void setMaxInactiveInterval(int maxInactiveInterval)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionsetMaxInactiveInterval in class com.mockobjects.servlet.MockHttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.servlet.http.HttpSessiongetMaxInactiveInterval in class com.mockobjects.servlet.MockHttpSessionpublic Object getAttribute(String attributeName)
getAttribute in interface javax.servlet.http.HttpSessiongetAttribute in class com.mockobjects.servlet.MockHttpSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||