Improve test coverage for TmfEventField.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / event / TmfTimestampTest.java
index 9232e6404ee54a605ef62893f15a144f6f5c7762..1d4bd2c2f39f19ec20c376b0fb011b481f352f0e 100644 (file)
@@ -101,7 +101,7 @@ public class TmfTimestampTest extends TestCase {
         try {
             @SuppressWarnings("unused")
             ITmfTimestamp timestamp = new TmfTimestamp(null);
-            fail("null copy");
+            fail("TmfTimestamp: null argument");
         } catch (IllegalArgumentException e) {
         }
     }
@@ -321,24 +321,24 @@ public class TmfTimestampTest extends TestCase {
             ts1.normalize(0, +MAX_SCALE_DIFF - 1);
             ts1.normalize(0, -MAX_SCALE_DIFF + 1);
         } catch (ArithmeticException e) {
-            fail();
+            fail("normalize: scale error");
         }
 
         // Test at limit
         try {
             ts1.normalize(0, +MAX_SCALE_DIFF);
-            fail();
+            fail("normalize: scale error");
             ts1.normalize(0, -MAX_SCALE_DIFF);
-            fail();
+            fail("normalize: scale error");
         } catch (ArithmeticException e) {
         }
 
         // Test over limit
         try {
             ts1.normalize(0, +MAX_SCALE_DIFF + 1);
-            fail();
+            fail("normalize: scale error");
             ts1.normalize(0, -MAX_SCALE_DIFF - 1);
-            fail();
+            fail("normalize: scale error");
         } catch (ArithmeticException e) {
         }
     }
This page took 0.024829 seconds and 5 git commands to generate.