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

AnchorTest

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

Fields Summary
Constructors Summary
Methods Summary
public voidtestSimple()

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

        AnchorTag tag = new AnchorTag();
        tag.setPageContext(pageContext);

        tag.setId("mylink");
        tag.setTheme("ajax");
        tag.setHref("a");
        tag.setErrorText("c");
        tag.setLoadingText("d");
        tag.setAfterLoading("e");
        tag.setBeforeLoading("f");
        tag.setListenTopics("g");
        tag.setTargets("h");
        tag.setHandler("i");
        tag.setNotifyTopics("j");
        tag.setIndicator("k");
        tag.setShowErrorTransportText("true");
        tag.setShowLoadingText("true");
        tag.doStartTag();
        tag.doEndTag();

        verify(AnchorTest.class.getResource("href-1.txt"));