| org.apache.struts2.views.jsp.AbstractTagTest org.apache.struts2.views.jsp.AbstractUITagTest
All known Subclasses: org.apache.struts2.views.jsp.ui.AnchorTest, org.apache.struts2.views.jsp.ui.FormTagTest, org.apache.struts2.views.jsp.ui.OptGroupTest, org.apache.struts2.views.jsp.ui.CheckboxListTest, org.apache.struts2.views.jsp.ui.ActionErrorTagTest, org.apache.struts2.views.jsp.ui.FileTest, org.apache.struts2.views.jsp.ui.TextfieldTest, org.apache.struts2.views.jsp.ui.TextareaTest, org.apache.struts2.views.jsp.ui.TabbedPanelTagTest, org.apache.struts2.views.jsp.ui.ComponentTest, org.apache.struts2.components.FormTest, org.apache.struts2.views.jsp.ui.UpDownSelectTagTest, org.apache.struts2.views.jsp.ui.ResetTest, org.apache.struts2.views.jsp.ui.LabelTest, org.apache.struts2.views.jsp.ui.DateTimePickerTagTest, org.apache.struts2.views.jsp.ui.HiddenTest, org.apache.struts2.views.jsp.ui.PasswordTest, org.apache.struts2.views.jsp.PushTagTest, org.apache.struts2.views.jsp.ui.DivTest, org.apache.struts2.views.jsp.ui.SubmitTest, org.apache.struts2.views.jsp.ui.ComboBoxTest, org.apache.struts2.views.jsp.ui.TokenTagTest, org.apache.struts2.views.jsp.ui.SelectTest, org.apache.struts2.views.jsp.ui.DoubleSelectTest, org.apache.struts2.views.jsp.ui.OptionTransferSelectTagTest, org.apache.struts2.views.jsp.ui.HeadTagTest, org.apache.struts2.views.jsp.ui.InputTransferSelectTagTest, org.apache.struts2.views.jsp.ui.RadioTest, org.apache.struts2.views.jsp.ui.SubmitAjaxTest, org.apache.struts2.views.jsp.ui.AutocompleterTest, org.apache.struts2.views.jsp.BeanTagTest, org.apache.struts2.views.jsp.ui.TreeTest, org.apache.struts2.views.jsp.ui.JspTemplateTest, org.apache.struts2.views.jsp.ui.ActionMessageTagTest, org.apache.struts2.views.jsp.ui.TooltipTest, org.apache.struts2.views.jsp.IteratorTagTest, org.apache.struts2.views.jsp.AnchorTagTest, org.apache.struts2.components.UIComponentTest, org.apache.struts2.views.jsp.SetTagTest, org.apache.struts2.views.jsp.ui.CheckboxTest, org.apache.struts2.views.jsp.URLTagTest, org.apache.struts2.views.jsp.ui.FieldErrorTagTest,
Inner Class :public class PropertyHolder | |
Inner Class :public class BeanHelper | |
Method Summary | |
protected Map | initializedGenericTagTestProperties() Initialize a map of
PropertyHolder for generic tag property testing. | public static String | normalize(Object obj, boolean appendSpace) normalizes a string so that strings generated on different platforms can be compared. | protected void | setUp() | protected void | tearDown() | public void | verify(URL url) Attempt to verify the contents of this.writer against the contents of the URL specified. | public void | verify(URL url, String[] excluded) Attempt to verify the contents of this.writer against the contents of the URL specified. | public void | verifyGenericProperties(AbstractUITag tag, String theme, Map propertiesToTest, String[] exclude) Do a generic verification that setting certain properties on a tag causes expected output regarding this
property. | public void | verifyGenericProperties(AbstractUITag tag, String theme, String[] exclude) Do a generic verification that setting certain properties on a tag causes expected output regarding this
property. |
FREEMARKER_ERROR_EXPECTATION | final static String FREEMARKER_ERROR_EXPECTATION(Code) | | |
normalize | public static String normalize(Object obj, boolean appendSpace)(Code) | | normalizes a string so that strings generated on different platforms can be compared. any group of one or more
space, tab, \r, and \n characters are converted to a single space character
Parameters: obj - the object to be normalized. normalize will perform its operation on obj.toString().trim() ; Parameters: appendSpace - the normalized string |
verify | public void verify(URL url) throws Exception(Code) | | Attempt to verify the contents of this.writer against the contents of the URL specified. verify() performs a
trim on both ends
Parameters: url - the HTML snippet that we want to validate against throws: Exception - if the validation failed |
verify | public void verify(URL url, String[] excluded) throws Exception(Code) | | Attempt to verify the contents of this.writer against the contents of the URL specified. verify() performs a
trim on both ends
Parameters: url - the HTML snippet that we want to validate against throws: Exception - if the validation failed |
verifyGenericProperties | public void verifyGenericProperties(AbstractUITag tag, String theme, String[] exclude) throws Exception(Code) | | Do a generic verification that setting certain properties on a tag causes expected output regarding this
property. Which properties to test with which expectations will be determined by the Map retrieved by
AbstractUITagTest.initializedGenericTagTestProperties() .
Parameters: tag - The fresh created tag instance to test. Parameters: theme - The theme to use. If null, use configured default theme. Parameters: exclude - Names of properties to exclude from particular test. throws: Exception - |
|
|