FileDocCategorySizeDatePackage
JspTemplateTest.javaAPI DocExample2008Mon Jul 23 13:26:16 BST 2007org.apache.struts2.views.jsp.ui

JspTemplateTest

public class JspTemplateTest extends org.apache.struts2.views.jsp.AbstractUITagTest
JspTemplateTest

Fields Summary
Constructors Summary
Methods Summary
public voidtestCheckBox()

        TestAction testAction = (TestAction) action;
        testAction.setFoo("true");

        CheckboxTag tag = new CheckboxTag();
        Mock rdMock = new Mock(RequestDispatcher.class);
        rdMock.expect("include",C.args(C.isA(HttpServletRequest.class), C.isA(HttpServletResponse.class)));
        RequestDispatcher dispatcher = (RequestDispatcher) rdMock.proxy();
        request.setupGetRequestDispatcher(dispatcher);
        tag.setPageContext(pageContext);
        tag.setTemplate("/test/checkbox.jsp");
        tag.doStartTag();
        tag.doEndTag();
        rdMock.verify();