tmf: Make CtfLocation extend TmfLocation
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / ctfadaptor / CtfLocationTest.java
index 1f88ad9b187eeb4da7bb42a59f72bcd252a2d721..d3407d59070b70eb6d317de56b12fcd43e310d6f 100644 (file)
@@ -66,17 +66,6 @@ public class CtfLocationTest {
         assertEquals(new Long(0L), (Long)result.getLocationInfo().getTimestamp());
     }
 
-    /**
-     * Run the CtfLocation clone() method test.
-     */
-    @Test
-    public void testClone() {
-        CtfLocation result = fixture.clone();
-
-        assertNotNull(result);
-        assertEquals(Long.valueOf(1), (Long)result.getLocationInfo().getTimestamp());
-    }
-
     /**
      * Run the Long getLocation() method test.
      */
@@ -109,7 +98,7 @@ public class CtfLocationTest {
     @Test
     public void testToString_valid(){
         CtfLocation fixture2 = new CtfLocation(new CtfLocationInfo(1337, 7331));
-        assertEquals("CtfLocation: Element [1337/7331]",fixture2.toString()); //$NON-NLS-1$
+        assertEquals("CtfLocation [fLocationInfo=Element [1337/7331]]", fixture2.toString()); //$NON-NLS-1$
     }
 
     /**
@@ -118,6 +107,6 @@ public class CtfLocationTest {
     @Test
     public void testToString_invalid(){
         CtfLocation fixture2 = new CtfLocation(new CtfLocationInfo(-1, -1));
-        assertEquals("CtfLocation: INVALID",fixture2.toString()); //$NON-NLS-1$
+        assertEquals("CtfLocation [INVALID]", fixture2.toString()); //$NON-NLS-1$
     }
 }
This page took 0.024116 seconds and 5 git commands to generate.