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

AutocompleterTest

public class AutocompleterTest extends org.apache.struts2.views.jsp.AbstractUITagTest
see
org.apache.struts2.components.Autocompleter

Fields Summary
Constructors Summary
Methods Summary
public voidtestAjax()

        AutocompleterTag tag = new AutocompleterTag();
        tag.setPageContext(pageContext);
        tag.setTheme("ajax");
        tag.setAutoComplete("true");
        tag.setDisabled("false");
        tag.setForceValidOption("false");
        tag.setHref("a");
        tag.setDropdownWidth("10");
        tag.setDropdownHeight("10");
        tag.setDelay("100");
        tag.setSearchType("b");
        tag.setDisabled("c");
        tag.setName("f");
        tag.setValue("g");
        tag.setIndicator("h");
        tag.setKeyName("i");
        tag.setLoadOnTextChange("true");
        tag.setLoadMinimumCount("3");
        tag.setShowDownArrow("false");
        tag.setIconPath("i");
        tag.setTemplateCssPath("j");
        tag.setDataFieldName("k");
        tag.setResultsLimit("1");
        tag.doStartTag();
        tag.doEndTag();

        verify(AutocompleterTest.class.getResource("Autocompleter-1.txt"));
    
public voidtestSimple()

        AutocompleterTag tag = new AutocompleterTag();
        tag.setPageContext(pageContext);
        tag.setTheme("simple");
        tag.setAutoComplete("true");
        tag.setDisabled("false");
        tag.setForceValidOption("false");
        tag.setList("{'d','e'}");
        tag.setHref("a");
        tag.setDropdownWidth("10");
        tag.setDropdownHeight("10");
        tag.setDelay("100");
        tag.setSearchType("b");
        tag.setDisabled("c");
        tag.setName("f");
        tag.setIconPath("i");
        tag.setTemplateCssPath("j");
        tag.setResultsLimit("1");
        tag.doStartTag();
        tag.doEndTag();

        verify(AutocompleterTest.class.getResource("Autocompleter-2.txt"));