tmf.core: Introduce TmfTimestamp factory methods
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / src / org / eclipse / tracecompass / tmf / core / tests / event / TmfTimestampDeltaTest.java
index 86223ee8c30f7a673e1c757d4b7472be6239b3f1..67f2f3039c999232b15cb16a2efead4a8b19ce0e 100644 (file)
@@ -71,8 +71,8 @@ public class TmfTimestampDeltaTest {
 
     @Test
     public void testCopyConstructor() {
-        final ITmfTimestamp ts = new TmfTimestamp(12345, 2);
-        final ITmfTimestamp copy = new TmfTimestamp(ts);
+        final ITmfTimestamp ts = TmfTimestamp.create(12345, 2);
+        final ITmfTimestamp copy = TmfTimestamp.create(12345, 2);
 
         assertEquals("getValue", ts.getValue(), copy.getValue());
         assertEquals("getscale", ts.getScale(), copy.getScale());
@@ -81,11 +81,6 @@ public class TmfTimestampDeltaTest {
         assertEquals("getscale", 2, copy.getScale());
     }
 
-    @Test(expected=IllegalArgumentException.class)
-    public void testCopyNullConstructor() {
-        new TmfTimestamp((TmfTimestamp) null);
-    }
-
     // ------------------------------------------------------------------------
     // normalize
     // ------------------------------------------------------------------------
This page took 0.034658 seconds and 5 git commands to generate.