Package com.xceptance.xlt.api.validators
Class ContentLengthValidator
java.lang.Object
com.xceptance.xlt.api.validators.ContentLengthValidator
Validates the downloaded content length with the announced size from the HTTP header.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentLengthValidatorReturns the singleton instance.voidvalidate(LightWeightPage page) Validates the specified lightweight HTML page.voidValidates the specified HTML page.
-
Constructor Details
-
ContentLengthValidator
public ContentLengthValidator()
-
-
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
-
getInstance
Returns the singleton instance.- Returns:
- the singleton instance
-