Package org.ow2.clif.deploy
Class TestNameAndDate
- java.lang.Object
-
- org.ow2.clif.deploy.TestNameAndDate
-
- All Implemented Interfaces:
java.io.Serializable
public class TestNameAndDate extends java.lang.Object implements java.io.SerializableElaborated implementation for test ids, holding its instantiation date. Useful to propagate the test initialization date, when NTP (or the like) global time is used.- Author:
- Bruno Dillenseger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TestNameAndDate(java.lang.String testName)Creates a new test identifier with the provided name, and remembers current time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDate()java.lang.StringgetName()java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getDate
public long getDate()
- Returns:
- this object creation date in ms, which is supposed to be interpreted as the test initialization date.
- See Also:
System.currentTimeMillis()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- a string starting by the test run id, followed by a readable and easily sortable representation of its initialization date. Example: run1_2010-03-18_18h20m55
-
-