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

DateTimePickerTagTest

public class DateTimePickerTagTest 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()

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

        tag.setId("id");
        tag.setTheme("ajax");

        tag.setAdjustWeeks("true");
        tag.setDayWidth("b");
        tag.setDisplayWeeks("true");
        tag.setEndDate("d");
        tag.setStartDate("e");
        tag.setStaticDisplay("false");
        tag.setWeekStartsOn("g");
        tag.setName("h");
        tag.setLanguage("i");
        tag.setTemplateCssPath("j");
        tag.doStartTag();
        tag.doEndTag();

        verify(DateTimePickerTagTest.class.getResource("DateTimePickerTagTest-1.txt"));