public class StopwatchRule
extends java.lang.Object
implements org.junit.rules.TestRule
| Modifier and Type | Field and Description |
|---|---|
static java.util.Date |
DATE |
| Constructor and Description |
|---|
StopwatchRule() |
StopwatchRule(boolean watchAll) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
java.lang.String |
getStopwatchDataAsReadableString(java.util.Map<java.lang.String,Stopwatches.NumbersForTask> data) |
void |
printStopwatchData(org.junit.runner.Description description,
java.util.Map<java.lang.String,Stopwatches.NumbersForTask> data,
long timeSpend) |
public StopwatchRule()
public StopwatchRule(boolean watchAll)
watchAll - true if all tests should be timed, false
if only tests should be considered which are annotated with @Timedpublic void printStopwatchData(org.junit.runner.Description description,
java.util.Map<java.lang.String,Stopwatches.NumbersForTask> data,
long timeSpend)
public java.lang.String getStopwatchDataAsReadableString(java.util.Map<java.lang.String,Stopwatches.NumbersForTask> data)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRule