|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.easetech.easytest.reports.data.DurationBean
public class DurationBean
Class contains duration of item. Item can be a method call. A test method runs for every test data input. In the test method, it is possible to measure the time of a service call which has been called in the test method. In this case to have this service method call, annotate it with @Intercept
| Field Summary | |
|---|---|
static long |
NANO_TO_MILLI
|
| Constructor Summary | |
|---|---|
DurationBean()
Constructor |
|
DurationBean(String item,
long startInNano,
long endInNano)
Constructor |
|
| Method Summary | |
|---|---|
long |
getEndInNano()
|
String |
getItem()
|
long |
getMsDifference()
Returns the difference end - start in milli seconds |
long |
getNanoDifference()
Time difference in nano seconds |
BigDecimal |
getRoundedMsDifference()
Returns rounded milli seconds |
long |
getStartInNano()
|
void |
setEndInNano(long endInNano)
|
void |
setItem(String item)
|
void |
setStartInNano(long startInNano)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long NANO_TO_MILLI
| Constructor Detail |
|---|
public DurationBean()
public DurationBean(String item,
long startInNano,
long endInNano)
item - e.g. method callstartInNano - start system time in nanoendInNano - end system time in nano| Method Detail |
|---|
public String getItem()
public void setItem(String item)
public long getStartInNano()
public void setStartInNano(long startInNano)
public long getEndInNano()
public void setEndInNano(long endInNano)
public long getNanoDifference()
public long getMsDifference()
public BigDecimal getRoundedMsDifference()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||