FileDocCategorySizeDatePackage
PushTagTest.javaAPI DocExample1549Mon Jul 23 13:26:16 BST 2007org.apache.struts2.views.jsp

PushTagTest

public class PushTagTest extends AbstractUITagTest

Fields Summary
Constructors Summary
Methods Summary
public voidtestSimple()

        PushTag tag = new PushTag();

        stack.setValue("foo", "bar");

        tag.setPageContext(pageContext);
        tag.setValue("foo");

        try {
            assertEquals(2, stack.size());
            tag.doStartTag();
            assertEquals(3, stack.size());
            tag.doEndTag();
            assertEquals(2, stack.size());
        } catch (JspException e) {
            e.printStackTrace();
            fail();
        }