Package com.xceptance.xlt.api.validators
Class HtmlEndTagValidator
java.lang.Object
com.xceptance.xlt.api.validators.HtmlEndTagValidator
Checks that a page has at least one closing HTML tag. Does not check, that this tag is the only one. It uses a
regular expression.
HTML comments are permitted after the closing HTML tag. Anything else will be logged as warning.
It also assumes a lower-case closing HTML tag according to the HTML/XHTML standard.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HtmlEndTagValidatorReturns the singleton instance.voidvalidate(LightWeightPage page) Validates the specified lightweight HTML page.voidThe validation as plain string method to be tested and used independently from the page.voidValidates the specified HTML page.
-
Method Details
-
validate
Validates the specified HTML page.- Parameters:
page- the page to check- Throws:
AssertionError- if the page fails validation
-
validate
Validates the specified lightweight HTML page.- Parameters:
page- the page to check- Throws:
AssertionError- if the page fails validation
-
validate
The validation as plain string method to be tested and used independently from the page.- Parameters:
content- a snippet of HTML code to be checked
-
getInstance
Returns the singleton instance.- Returns:
- the singleton instance
-