Class ValidateConsoleRule
- java.lang.Object
-
- org.xwiki.test.integration.junit4.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. SeeValidateConsoleExtensionfor more details.- Since:
- 11.4RC1
- Version:
- $Id: 25ad666e9a6fa7fef1afda20d477e8d9f00977de $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classValidateConsoleRule.ValidateConsoleStatementThe actual code that executes our capturing logic before the test runs and removes it after it has run.
-
Constructor Summary
Constructors Constructor Description ValidateConsoleRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)LogCaptureConfigurationgetLogCaptureConfiguration()
-
-
-
Method Detail
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)- Specified by:
applyin interfaceorg.junit.rules.TestRule
-
getLogCaptureConfiguration
public LogCaptureConfiguration getLogCaptureConfiguration()
- Returns:
- the configuration object to be used by tests to register excludes and expected lines
-
-