X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Ftest%2FNumericTRId.java;h=185d200e3a77405f3bf832cd7188a241dfc4ced5;hb=6eb8dbec55c0cb31407907860ba6de627243b8af;hp=b3654dc0527f8758c6a2b7d77c80d8ec700fa0fe;hpb=62ef12a06742ee09256c18e8db90fe83a108c116;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc/src/main/java/org/argeo/slc/core/test/NumericTRId.java b/org.argeo.slc/src/main/java/org/argeo/slc/core/test/NumericTRId.java index b3654dc05..185d200e3 100644 --- a/org.argeo.slc/src/main/java/org/argeo/slc/core/test/NumericTRId.java +++ b/org.argeo.slc/src/main/java/org/argeo/slc/core/test/NumericTRId.java @@ -2,20 +2,27 @@ package org.argeo.slc.core.test; import org.argeo.slc.core.deploy.DeployedSystemId; +/** + * Basic implementation of test run id based on a long value and a reference to + * a deployed system id. + */ public class NumericTRId implements TestResultId { /** For ORM */ private Long tid; private Long value; private DeployedSystemId deployedSystemId; - + + /** + * Initializes the long value with the current time (based on + * java.lang.System.currentTimeMillis()). + */ public void init() { if (getValue() == null) { setValue(System.currentTimeMillis()); } } - public Long getValue() { return value; } @@ -49,7 +56,5 @@ public class NumericTRId implements TestResultId { void setTid(Long tid) { this.tid = tid; } - - }