Class LogCaptureConfiguration


  • public class LogCaptureConfiguration
    extends Object
    Allow registering excludes and expected failing log content for tests.
    Since:
    11.4RC1
    Version:
    $Id: b05892e6c2c2f19035e8c17204db759882eec186 $
    • Constructor Detail

      • LogCaptureConfiguration

        public LogCaptureConfiguration()
    • Method Detail

      • registerExcludes

        public void registerExcludes​(String... excludeLines)
        Parameters:
        excludeLines - the lines to exclude from failing the test
      • registerExcludeRegexes

        public void registerExcludeRegexes​(String... excludeLineRegexes)
        Parameters:
        excludeLineRegexes - the lines to exclude from failing the test (defined as regexes)
      • registerExpected

        public void registerExpected​(String... expectedLines)
        Parameters:
        expectedLines - the failing lines to expect
      • registerExpectedRegexes

        public void registerExpectedRegexes​(String... expectedLineRegexes)
        Parameters:
        expectedLineRegexes - the failing lines to expect (defined as regexes)
      • getExcludedLines

        public List<Line> getExcludedLines()
        Returns:
        the list of excluded lines (i.e. lines that should fail the test but that are excluded for now till the test or code is fixed)
      • getExpectedLines

        public List<Line> getExpectedLines()
        Returns:
        the list of expected lines (i.e. lines for which it's normal that they don't fail the test)