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

InputTransferSelectTagTest

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

Fields Summary
Constructors Summary
Methods Summary
public voidtestWithRequired()

        List list = new ArrayList();
        list.add("Item One");
        list.add("Item Two");

        TestAction testaction = (TestAction) action;
        testaction.setCollection(list);

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

        tag.setName("collection");
        tag.setList("collection");

        tag.doStartTag();
        tag.doEndTag();

        //System.out.println(writer.toString());
        verify(InputTransferSelectTagTest.class.getResource("inputtransferselect-1.txt"));