Package org.xwiki.test.integration.junit
Class LogCaptureValidator
- java.lang.Object
-
- org.xwiki.test.integration.junit.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 Summary
Constructors Constructor Description LogCaptureValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(String logContent, LogCaptureConfiguration configuration)
void
validate(String logContent, LogCaptureConfiguration configuration, boolean displayMissing)
-
-
-
Method Detail
-
validate
public void validate(String logContent, LogCaptureConfiguration configuration)
- Parameters:
logContent
- the log content to validateconfiguration
- the user-registered excludes and expected log lines
-
validate
public void validate(String logContent, LogCaptureConfiguration configuration, boolean displayMissing)
- Parameters:
logContent
- the log content to validateconfiguration
- the user-registered excludes and expected log linesdisplayMissing
- true if warning should be logged when excluded/expected logs are not found- Since:
- 11.10
-
-