| java.lang.Object |
| ↳ |
org.junit.rules.TestWatcher |
| |
↳ |
com.atlassian.jira.junit.rules.ClearStatics |
Class Overview
Clear static variables in JIRA both before and after the test runs to improve test separation.
This clears out things like the component accessor's worker, the authentication context,
thread local searcher data, database configuration, and webwork configuration that may
pollute this or some other test.
Just add this to your test:
@Rule public ClearStatics clearStatics = new ClearStatics();
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
Protected Methods
protected
void
finished
(Description description)
protected
void
starting
(Description description)