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

DivTest

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

Fields Summary
Constructors Summary
Methods Summary
public voidtestGenericAjax()

        AbstractRemoteCallUITag tag = new DivTag();
        verifyGenericProperties(tag, "ajax", new String[]{"value","tabindex","disabled"});
    
public voidtestGenericSimple()

        AbstractRemoteCallUITag tag = new DivTag();
        verifyGenericProperties(tag, "simple", new String[]{"value","tabindex","disabled"});
    
public voidtestGenericXhtml()

        AbstractRemoteCallUITag tag = new DivTag();
        verifyGenericProperties(tag, "xhtml", new String[]{"value","tabindex","disabled"});
    
public voidtestSimple()

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

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

        tag.setId("mylabel");
        tag.setTheme("ajax");
        tag.setHref("a");
        tag.setLoadingText("b");
        tag.setErrorText("c");
        tag.setAutoStart("true");
        tag.setDelay("4000");
        tag.setUpdateFreq("1000");
        tag.setListenTopics("g");
        tag.setStartTimerListenTopics("h");
        tag.setStopTimerListenTopics("i");
        tag.setBeforeLoading("j");
        tag.setAfterLoading("k");
        tag.setRefreshOnShow("true");
        tag.setHandler("l");
        tag.setIndicator("m");
        tag.setShowLoadingText("true");
        tag.setSeparateScripts("false");
        tag.doStartTag();
        tag.doEndTag();

        verify(DivTest.class.getResource("div-1.txt"));