tmf.core: Introduce TmfTimestamp factory methods
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / stubs / org / eclipse / tracecompass / tmf / tests / stubs / trace / text / SyslogTrace.java
index b5df50009e44bd28ce30b56a2f8c8a21321550ec..58b126aaa1d7419824e6495c13974983a9ab8425 100644 (file)
@@ -105,7 +105,7 @@ public class SyslogTrace extends TextTrace<SyslogEvent> {
                 timestamp = createTimestamp(ns);
             }
         } catch (ParseException e) {
-            timestamp = new TmfTimestamp();
+            timestamp = TmfTimestamp.create(0, ITmfTimestamp.SECOND_SCALE);
         }
 
         TextTraceEventContent content = new TextTraceEventContent(5);
@@ -136,7 +136,7 @@ public class SyslogTrace extends TextTrace<SyslogEvent> {
 
     @Override
     public ITmfTimestamp getInitialRangeOffset() {
-        return new TmfTimestamp(60, ITmfTimestamp.SECOND_SCALE);
+        return TmfTimestamp.fromSeconds(60);
     }
 
     @Override
This page took 0.029361 seconds and 5 git commands to generate.