| org.apache.struts2.StrutsTestCase org.apache.struts2.views.jsp.AbstractTagTest
All known Subclasses: org.apache.struts2.views.jsp.ui.DateTagTest, org.apache.struts2.views.jsp.MergeIteratorTagTest, org.apache.struts2.views.jsp.TextTagTest, org.apache.struts2.views.jsp.AbstractUITagTest, org.apache.struts2.components.ComponentTest, org.apache.struts2.views.jsp.ActionTagTest, org.apache.struts2.views.jsp.SubsetIteratorTagTest, org.apache.struts2.views.jsp.AppendIteratorTagTest, org.apache.struts2.components.URLTest, org.apache.struts2.views.jsp.IteratorGeneratorTagTest, org.apache.struts2.views.jsp.IncludeTagTest, org.apache.struts2.views.jsp.SortIteratorTagTest,
AbstractTagTest | abstract public class AbstractTagTest extends StrutsTestCase (Code) | | Base class to extend for unit testing UI Tags.
|
Method Summary | |
public Action | getAction() Constructs the action that we're going to test against. | protected void | setUp() | protected void | tearDown() |
action | protected Action action(Code) | | |
mockContainer | protected Mock mockContainer(Code) | | |
stack | protected ValueStack stack(Code) | | |
writer | protected StringWriter writer(Code) | | contains the buffer that our unit test will write to. we can later verify this buffer for correctness.
|
getAction | public Action getAction()(Code) | | Constructs the action that we're going to test against. For most UI tests, this default action should be enough.
However, simply override getAction to return a custom Action if you need something more sophisticated.
the Action to be added to the ValueStack as part of the unit test |
|
|