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

PasswordTest

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

Fields Summary
Constructors Summary
Methods Summary
public voidtestGenericAjax()

        PasswordTag tag = new PasswordTag();
        verifyGenericProperties(tag, "ajax", new String[]{"value"});
    
public voidtestGenericSimple()

        PasswordTag tag = new PasswordTag();
        verifyGenericProperties(tag, "simple", new String[]{"value"});
    
public voidtestGenericXhtml()

        PasswordTag tag = new PasswordTag();
        verifyGenericProperties(tag, "xhtml", new String[]{"value"});
    
public voidtestSimple()

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

        PasswordTag tag = new PasswordTag();
        tag.setPageContext(pageContext);
        tag.setLabel("mylabel");
        tag.setName("myname");
        tag.setTitle("mytitle");

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

        verify(PasswordTag.class.getResource("Password-1.txt"));