Methods Summary |
---|
public com.opensymphony.xwork2.Action | getAction()
return new InternalAction();
|
public void | testWithNullFieldErrors()
FieldErrorTag tag = new FieldErrorTag();
((InternalAction)action).setHaveFieldErrors(false);
((InternalAction)action).setReturnNullForFieldErrors(true);
tag.setPageContext(pageContext);
tag.doStartTag();
ParamTag pTag1 = new ParamTag();
pTag1.setPageContext(pageContext);
pTag1.setValue("%{'field2'}");
pTag1.doStartTag();
pTag1.doEndTag();
tag.doEndTag();
verify(FieldErrorTagTest.class.getResource("fielderror-2.txt"));
|
public void | testWithParamsWithFieldErrors1()
FieldErrorTag tag = new FieldErrorTag();
((InternalAction)action).setHaveFieldErrors(true);
tag.setPageContext(pageContext);
tag.doStartTag();
ParamTag pTag1 = new ParamTag();
pTag1.setPageContext(pageContext);
pTag1.setValue("%{'field1'}");
pTag1.doStartTag();
pTag1.doEndTag();
ParamTag pTag2 = new ParamTag();
pTag2.setPageContext(pageContext);
pTag2.setValue("%{'field3'}");
pTag2.doStartTag();
pTag2.doEndTag();
tag.doEndTag();
verify(FieldErrorTagTest.class.getResource("fielderror-3.txt"));
|
public void | testWithParamsWithFieldErrors2()
FieldErrorTag tag = new FieldErrorTag();
((InternalAction)action).setHaveFieldErrors(true);
tag.setPageContext(pageContext);
tag.doStartTag();
ParamTag pTag1 = new ParamTag();
pTag1.setPageContext(pageContext);
pTag1.setValue("%{'field1'}");
pTag1.doStartTag();
pTag1.doEndTag();
ParamTag pTag2 = new ParamTag();
pTag2.setPageContext(pageContext);
pTag2.setValue("%{'field2'}");
pTag2.doStartTag();
pTag2.doEndTag();
tag.doEndTag();
verify(FieldErrorTagTest.class.getResource("fielderror-4.txt"));
|
public void | testWithParamsWithFieldErrors3()
FieldErrorTag tag = new FieldErrorTag();
((InternalAction)action).setHaveFieldErrors(true);
tag.setPageContext(pageContext);
tag.doStartTag();
ParamTag pTag1 = new ParamTag();
pTag1.setPageContext(pageContext);
pTag1.setValue("%{'field2'}");
pTag1.doStartTag();
pTag1.doEndTag();
tag.doEndTag();
verify(FieldErrorTagTest.class.getResource("fielderror-5.txt"));
|
public void | testWithParamsWithoutFieldErrors1()
FieldErrorTag tag = new FieldErrorTag();
((InternalAction)action).setHaveFieldErrors(false);
tag.setPageContext(pageContext);
tag.doStartTag();
ParamTag pTag1 = new ParamTag();
pTag1.setPageContext(pageContext);
pTag1.setValue("%{'field1'}");
pTag1.doStartTag();
pTag1.doEndTag();
ParamTag pTag2 = new ParamTag();
pTag2.setPageContext(pageContext);
pTag2.setValue("%{'field3'}");
pTag2.doStartTag();
pTag2.doEndTag();
tag.doEndTag();
verify(FieldErrorTagTest.class.getResource("fielderror-2.txt"));
|
public void | testWithParamsWithoutFieldErrors2()
FieldErrorTag tag = new FieldErrorTag();
((InternalAction)action).setHaveFieldErrors(false);
tag.setPageContext(pageContext);
tag.doStartTag();
ParamTag pTag1 = new ParamTag();
pTag1.setPageContext(pageContext);
pTag1.setValue("%{'field1'}");
pTag1.doStartTag();
pTag1.doEndTag();
ParamTag pTag2 = new ParamTag();
pTag2.setPageContext(pageContext);
pTag2.setValue("%{'field3'}");
pTag2.doStartTag();
pTag2.doEndTag();
tag.doEndTag();
verify(FieldErrorTagTest.class.getResource("fielderror-2.txt"));
|
public void | testWithParamsWithoutFieldErrors3()
FieldErrorTag tag = new FieldErrorTag();
((InternalAction)action).setHaveFieldErrors(false);
tag.setPageContext(pageContext);
tag.doStartTag();
ParamTag pTag1 = new ParamTag();
pTag1.setPageContext(pageContext);
pTag1.setValue("%{'field2'}");
pTag1.doStartTag();
pTag1.doEndTag();
tag.doEndTag();
verify(FieldErrorTagTest.class.getResource("fielderror-2.txt"));
|
public void | testWithoutParamsWithFieldErrors()
FieldErrorTag tag = new FieldErrorTag();
((InternalAction)action).setHaveFieldErrors(true);
tag.setPageContext(pageContext);
tag.doStartTag();
tag.doEndTag();
verify(FieldErrorTagTest.class.getResource("fielderror-1.txt"));
|
public void | testWithoutParamsWithoutFieldErrors()
FieldErrorTag tag = new FieldErrorTag();
((InternalAction)action).setHaveFieldErrors(false);
tag.setPageContext(pageContext);
tag.doStartTag();
tag.doEndTag();
verify(FieldErrorTagTest.class.getResource("fielderror-2.txt"));
|