public class Slf4jRule extends TestWatcher
Modifier and Type | Class and Description |
---|---|
static class |
Slf4jRule.Level
Logging Level.
|
Constructor and Description |
---|
Slf4jRule() |
Modifier and Type | Method and Description |
---|---|
List<String> |
allStatements() |
void |
clear() |
boolean |
contains(String text) |
boolean |
containsExMessage(String exceptionMessage) |
boolean |
containsMatching(String regex) |
protected void |
finished(Description description) |
void |
record(Slf4jRule.Level level) |
void |
recordForName(String name) |
void |
recordForObject(Object obj) |
void |
recordForPackage(Package pack) |
void |
recordForType(Class<?> type) |
int |
size() |
protected void |
starting(Description description) |
protected void starting(Description description)
starting
in class
TestWatcher
protected void finished(Description description)
finished
in class
TestWatcher
public void record(Slf4jRule.Level level)
public void recordForObject(Object obj)
public void recordForType(Class<?> type)
public void recordForPackage(Package pack)
public void recordForName(String name)
public boolean contains(String text)
public boolean containsMatching(String regex)
public boolean containsExMessage(String exceptionMessage)
public int size()
public void clear()