public class TagTestHelper extends AbstractServletTestHelper
com.mockobjects.servlet.MockPageContext#setRequest();,
com.mockobjects.servlet.MockPageContext#setServletContext();,
com.mockobjects.servlet.MockPageContext#setSession();| Constructor and Description |
|---|
TagTestHelper(Tag testSubject) |
| Modifier and Type | Method and Description |
|---|---|
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
|
MockJspWriter |
getOutWriter() |
MockPageContext |
getPageContext() |
void |
testDoInitBody()
Invoke doInitBody on the test subject
|
getHttpSession, getRequest, getRequestDispatcher, getResponse, getServletConfig, getServletContextpublic TagTestHelper(Tag testSubject)
testSubject - The Tag to be testedpublic MockJspWriter getOutWriter()
public MockPageContext getPageContext()
public void assertDoStartTag(int expectedValue)
throws JspException
expectedValue - value to check against doStartTagJspExceptionpublic void testDoInitBody()
throws JspException
JspExceptionpublic void assertDoAfterBody(int expectedValue)
throws JspException
expectedValue - value to check against doAfterBodyJspExceptionpublic void assertDoEndTag(int expectedValue)
throws JspException
expectedValue - value to check against doEndTagJspExceptionCopyright © 2002 Mock Objects. All Rights Reserved.