|
|||||||||
| Home >> All >> com >> mockobjects >> [ helpers overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.mockobjects.helpers
Class TagTestHelper

java.lang.Objectcom.mockobjects.helpers.AbstractServletTestHelper
com.mockobjects.helpers.TagTestHelper
- public class TagTestHelper
- extends AbstractServletTestHelper
Sets up mock tag objects in a common configuration. MockHttpServletRequest, MockServletContext and MockHttpSession are attached to MockPageContext
| Field Summary | |
private com.mockobjects.servlet.MockBodyContent |
bodyContent
|
private com.mockobjects.servlet.MockJspWriter |
enclosingWriter
|
private com.mockobjects.servlet.MockJspWriter |
outWriter
|
private com.mockobjects.servlet.MockPageContext |
pageContext
|
private javax.servlet.jsp.tagext.Tag |
testSubject
|
| Fields inherited from class com.mockobjects.helpers.AbstractServletTestHelper |
httpSession, request, requestDispatcher, response, servletConfig, servletContext |
| Constructor Summary | |
TagTestHelper(javax.servlet.jsp.tagext.Tag testSubject)
|
|
| Method Summary | |
void |
assertDoAfterBody(int expectedValue)
Assert that the return value of doAfterBody is equal to an expectedValue |
void |
assertDoEndTag(int expectedValue)
Assert that the return value of doEndTag is equal to an expectedValue |
void |
assertDoStartTag(int expectedValue)
Assert that the return value of doStartTag is equal to an expectedValue |
private void |
checkReturnValue(java.lang.String methodName,
int expectedValue,
int returnValue)
|
com.mockobjects.servlet.MockJspWriter |
getOutWriter()
|
com.mockobjects.servlet.MockPageContext |
getPageContext()
|
private java.lang.String |
getReturnValueName(int returnValue)
|
void |
testDoInitBody()
Invoke doInitBody on the test subject |
| Methods inherited from class com.mockobjects.helpers.AbstractServletTestHelper |
getHttpSession, getRequest, getRequestDispatcher, getResponse, getServletConfig, getServletContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
pageContext
private final com.mockobjects.servlet.MockPageContext pageContext
bodyContent
private final com.mockobjects.servlet.MockBodyContent bodyContent
outWriter
private final com.mockobjects.servlet.MockJspWriter outWriter
enclosingWriter
private final com.mockobjects.servlet.MockJspWriter enclosingWriter
testSubject
private final javax.servlet.jsp.tagext.Tag testSubject
| Constructor Detail |
TagTestHelper
public TagTestHelper(javax.servlet.jsp.tagext.Tag testSubject)
| Method Detail |
getReturnValueName
private final java.lang.String getReturnValueName(int returnValue)
getOutWriter
public com.mockobjects.servlet.MockJspWriter getOutWriter()
getPageContext
public com.mockobjects.servlet.MockPageContext getPageContext()
assertDoStartTag
public void assertDoStartTag(int expectedValue)
throws javax.servlet.jsp.JspException
- Assert that the return value of doStartTag is equal to an expectedValue
checkReturnValue
private final void checkReturnValue(java.lang.String methodName, int expectedValue, int returnValue)
testDoInitBody
public void testDoInitBody()
throws javax.servlet.jsp.JspException
- Invoke doInitBody on the test subject
assertDoAfterBody
public void assertDoAfterBody(int expectedValue)
throws javax.servlet.jsp.JspException
- Assert that the return value of doAfterBody is equal to an expectedValue
assertDoEndTag
public void assertDoEndTag(int expectedValue)
throws javax.servlet.jsp.JspException
- Assert that the return value of doEndTag is equal to an expectedValue
|
|||||||||
| Home >> All >> com >> mockobjects >> [ helpers overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC