Class StandardValidator


  • public class StandardValidator
    extends java.lang.Object
    This validator groups the four most common validators into one to make the integration into the code easier.
    • Constructor Detail

      • StandardValidator

        public StandardValidator()
    • Method Detail

      • validate

        public void validate​(HtmlPage page)
                      throws java.lang.Exception
        The most common validators grouped into one validator to simplify the integration. It will validate the following aspects:
        • response code,
        • content length,
        • closing HTML tag and
        • JTidy
        Parameters:
        page - the page to check
        Throws:
        java.lang.Exception
      • getInstance

        public static StandardValidator getInstance()
        Returns the instance.
        Returns:
        the singleton instance of this validator