public class AllLogRule extends Object implements org.junit.rules.TestRule
@Rule public AllLogRule logRule = new AllLogRule();
| Modifier and Type | Class and Description |
|---|---|
class |
AllLogRule.LogStatement
The actual code that executes our capturing logic before the test runs and removes it after it has run.
|
| Constructor and Description |
|---|
AllLogRule()
Capture INFO log.
|
AllLogRule(LogRule.LogLevel level)
Caputure passed log level.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
org.slf4j.Marker |
getMarker(int position) |
String |
getMessage(int position) |
int |
size() |
public AllLogRule()
public AllLogRule(LogRule.LogLevel level)
level - the level of log to capturepublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic String getMessage(int position)
position - the message number in the list of captured logspublic org.slf4j.Marker getMarker(int position)
position - the message number in the list of captured logspublic int size()
Copyright © 2004–2015 XWiki. All rights reserved.