public class LogFileRule extends Object implements org.junit.rules.MethodRule
LogFileRuleConfig
annotation. If enabled, the log files are
scanned before the test method is executed. Errors are reported in the rule and can be accessed in the test using
getErrors()
.
See the LogFileRuleConfig
for the various configuration options.LogFileRuleConfig
Constructor and Description |
---|
LogFileRule() |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement baseStatement,
org.junit.runners.model.FrameworkMethod frameworkMethod,
Object o) |
String |
getEndMarkerForLogFile(String logFileName) |
List<String> |
getErrors() |
LogFileRuleConfig |
getRuleConfig() |
void |
setErrors(List<String> errors) |
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement baseStatement, org.junit.runners.model.FrameworkMethod frameworkMethod, Object o)
apply
in interface org.junit.rules.MethodRule
public LogFileRuleConfig getRuleConfig()
Copyright © 2018. All rights reserved.