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, getServletContext
public 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 doStartTagJspException
public void testDoInitBody() throws JspException
JspException
public void assertDoAfterBody(int expectedValue) throws JspException
expectedValue
- value to check against doAfterBodyJspException
public void assertDoEndTag(int expectedValue) throws JspException
expectedValue
- value to check against doEndTagJspException
Copyright © 2002 Mock Objects. All Rights Reserved.