public class StopwatchRule extends Object implements org.junit.rules.TestRule
| 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) |
String |
getStopwatchDataAsReadableString(Map<String,Stopwatches.NumbersForTask> data) |
void |
printStopwatchData(org.junit.runner.Description description,
Map<String,Stopwatches.NumbersForTask> data,
long timeSpend) |
public static Date DATE
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,
Map<String,Stopwatches.NumbersForTask> data,
long timeSpend)
public String getStopwatchDataAsReadableString(Map<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.TestRuleCopyright © 2016. All Rights Reserved.