java.lang.Object |
↳ |
org.junit.rules.TestWatcher |
|
↳ |
com.atlassian.jira.junit.rules.Log4jLogger |
Class Overview
Watches log4j logs. This can be used to spy on log4j or slf4j when testing.
Summary
Protected Methods |
void
|
finished(Description description)
|
void
|
starting(Description description)
|
[Expand]
Inherited Methods |
From class
org.junit.rules.TestWatcher
Statement
|
apply(Statement arg0, Description arg1)
|
void
|
failed(Throwable arg0, Description arg1)
|
void
|
finished(Description arg0)
|
void
|
skipped(AssumptionViolatedException arg0, Description arg1)
|
@Deprecated
void
|
skipped(AssumptionViolatedException arg0, Description arg1)
|
void
|
starting(Description arg0)
|
void
|
succeeded(Description arg0)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
org.junit.rules.TestRule
Statement
|
apply(Statement arg0, Description arg1)
|
|
Public Constructors
public
Log4jLogger
(String category)
Creates a watcher of the given category
Parameters
category
| the category to watch
|
public
Log4jLogger
()
Creates a watcher of the root category
public
Log4jLogger
(Class<?> clazz)
Creates a watcher of the given class category
Parameters
clazz
| the class category to watch
|
Public Methods
public
void
setLevel
(Level level)
Protected Methods
protected
void
finished
(Description description)
protected
void
starting
(Description description)