Class ValidateConsoleRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class ValidateConsoleRule
    extends Object
    implements org.junit.rules.TestRule
    Captures content sent to stdout/stderr by JUnit4 functional tests and report a failure if the content contains some violations. See ValidateConsoleExtension for more details.
    Since:
    11.4RC1
    Version:
    $Id: 25ad666e9a6fa7fef1afda20d477e8d9f00977de $
    • Constructor Detail

      • ValidateConsoleRule

        public ValidateConsoleRule()
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement statement,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule
      • getLogCaptureConfiguration

        public LogCaptureConfiguration getLogCaptureConfiguration()
        Returns:
        the configuration object to be used by tests to register excludes and expected lines