com.mockobjects.helpers
public class TagTestHelper extends AbstractServletTestHelper
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 |
Parameters: testSubject The Tag to be tested
Parameters: expectedValue value to check against doAfterBody
Parameters: expectedValue value to check against doEndTag
Parameters: expectedValue value to check against doStartTag
Returns: The writer use when making calls to PageContext.getOut