tmf.core: Introduce TmfTimestamp factory methods
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / src / org / eclipse / tracecompass / tmf / core / tests / trace / location / TmfLocationTest.java
index 855fb12d326c53064dcd38e9cbe626420a332c97..91eae78b0a423115bc98045e623c96de6b6ac363 100644 (file)
@@ -23,6 +23,7 @@ import java.nio.ByteBuffer;
 
 import org.eclipse.tracecompass.internal.tmf.core.trace.experiment.TmfExperimentLocation;
 import org.eclipse.tracecompass.internal.tmf.core.trace.experiment.TmfLocationArray;
+import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp;
 import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestamp;
 import org.eclipse.tracecompass.tmf.core.trace.location.ITmfLocation;
 import org.eclipse.tracecompass.tmf.core.trace.location.TmfLocation;
@@ -42,7 +43,7 @@ public class TmfLocationTest {
     // ------------------------------------------------------------------------
 
     private Long aLong = 12345L;
-    private TmfTimestamp aTimestamp = new TmfTimestamp();
+    private ITmfTimestamp aTimestamp = TmfTimestamp.create(0, ITmfTimestamp.SECOND_SCALE);
     private TmfLocationArray aLocationArray;
 
     private TmfLongLocation fLocation1;
@@ -234,7 +235,7 @@ public class TmfLocationTest {
 
     @Test
     public void testToString() {
-        TmfTimestamp ts = new TmfTimestamp();
+        ITmfTimestamp ts = TmfTimestamp.create(0, ITmfTimestamp.SECOND_SCALE);
 
         TmfLongLocation location1 = new TmfLongLocation(aLong);
         TmfTimestampLocation location2 = new TmfTimestampLocation(ts);
This page took 0.037914 seconds and 5 git commands to generate.