Package org.xwiki.test.integration.junit
Class LogCaptureConfiguration
- java.lang.Object
-
- org.xwiki.test.integration.junit.LogCaptureConfiguration
-
public class LogCaptureConfiguration extends Object
Allow registering excludes and expected failing log content for tests.- Since:
- 11.4RC1
- Version:
- $Id: b05892e6c2c2f19035e8c17204db759882eec186 $
-
-
Constructor Summary
Constructors Constructor Description LogCaptureConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Line>
getExcludedLines()
List<Line>
getExpectedLines()
void
registerExcludeRegexes(String... excludeLineRegexes)
void
registerExcludes(String... excludeLines)
void
registerExpected(String... expectedLines)
void
registerExpectedRegexes(String... expectedLineRegexes)
-
-
-
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)
-
-