|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockobjects.helpers.AbstractServletTestHelper com.mockobjects.helpers.TagTestHelper
Sets up mock tag objects in a common configuration. MockHttpServletRequest, MockServletContext and MockHttpSession are attached to MockPageContext
com.mockobjects.servlet.MockPageContext#setRequest();
,
com.mockobjects.servlet.MockPageContext#setServletContext();
,
com.mockobjects.servlet.MockPageContext#setSession();
Constructor Summary | |
TagTestHelper(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 |
MockJspWriter |
getOutWriter()
|
MockPageContext |
getPageContext()
|
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TagTestHelper(Tag testSubject)
testSubject
- The Tag to be testedMethod Detail |
public MockJspWriter getOutWriter()
public MockPageContext getPageContext()
public void assertDoStartTag(int expectedValue) throws JspException
expectedValue
- value to check against doStartTag
JspException
public void testDoInitBody() throws JspException
JspException
public void assertDoAfterBody(int expectedValue) throws JspException
expectedValue
- value to check against doAfterBody
JspException
public void assertDoEndTag(int expectedValue) throws JspException
expectedValue
- value to check against doEndTag
JspException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |