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

ActionMessageTagTest

public class ActionMessageTagTest extends org.apache.struts2.views.jsp.AbstractUITagTest
ActionMessageTag test case.

Fields Summary
Constructors Summary
Methods Summary
public com.opensymphony.xwork2.ActiongetAction()

        return new InternalActionSupport();
    
public voidtestNoActionMessages()


        ActionMessageTag tag = new ActionMessageTag();
        ((InternalActionSupport)action).setHasActionMessage(false);
        tag.setPageContext(pageContext);
        tag.doStartTag();
        tag.doEndTag();

        verify(ActionMessageTagTest.class.getResource("actionmessage-1.txt"));
    
public voidtestYesActionMessages()


        ActionMessageTag tag = new ActionMessageTag();
        ((InternalActionSupport)action).setHasActionMessage(true);
        tag.setPageContext(pageContext);
        tag.doStartTag();
        tag.doEndTag();

        verify(ActionMessageTagTest.class.getResource("actionmessage-2.txt"));