Class LogCaptureValidator


  • public class LogCaptureValidator
    extends Object
    Validate logs against default excludes/expected lines and those registered by the tests.
    Since:
    11.4RC1
    Version:
    $Id: 762bdf2b844f1f80b60ab87f94e6bae7be3acaf7 $
    • Constructor Detail

      • LogCaptureValidator

        public LogCaptureValidator()
    • Method Detail

      • validate

        public void validate​(String logContent,
                             LogCaptureConfiguration configuration)
        Parameters:
        logContent - the log content to validate
        configuration - the user-registered excludes and expected log lines
      • validate

        public void validate​(String logContent,
                             LogCaptureConfiguration configuration,
                             boolean displayMissing)
        Parameters:
        logContent - the log content to validate
        configuration - the user-registered excludes and expected log lines
        displayMissing - true if warning should be logged when excluded/expected logs are not found
        Since:
        11.10