public class DurationCount extends Object implements TestDuration
TestDuration.TestProgress
Modifier and Type | Field and Description |
---|---|
static long |
WARM_UP_COUNT |
Constructor and Description |
---|
DurationCount(String durationSpec) |
Modifier and Type | Method and Description |
---|---|
boolean |
canContinue(TestDuration.TestProgress progress)
Whether the test can continue based on the current test's progress
|
String |
durationTypeName()
Gets the type name for the duration (ie.: "time", "count", etc).
|
TestDuration |
getCoolDownDuration()
Get the cool down duration
|
long |
getNumericDuration()
Get the numeric time duration
|
TestDuration |
getWarmUpDuration()
Get the warm up duration
|
String |
toString() |
public DurationCount(String durationSpec)
public boolean canContinue(TestDuration.TestProgress progress)
TestDuration
canContinue
in interface TestDuration
progress
- current progressespublic long getNumericDuration()
TestDuration
getNumericDuration
in interface TestDuration
public TestDuration getWarmUpDuration()
TestDuration
getWarmUpDuration
in interface TestDuration
public TestDuration getCoolDownDuration()
TestDuration
getCoolDownDuration
in interface TestDuration
public String durationTypeName()
TestDuration
durationTypeName
in interface TestDuration
This documentation was released into the public domain.