Remove context clone and add trace ranks to experiment location
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / trace / TmfContextTest.java
index 2358768c924879cab01cf4904ccdfeef4413347a..07116f55c03fb48b2b7295553e0f4bdb797a5cbe 100644 (file)
  *   Francois Chouinard - Initial API and implementation
  *   Francois Chouinard - Adapted for TMF Trace Model 1.0
  *   Alexandre Montplaisir - Port to JUnit4
+ *   Patrick Tasse - Updated for removal of context clone
  *******************************************************************************/
 
 package org.eclipse.linuxtools.tmf.core.tests.trace;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
@@ -228,32 +228,6 @@ public class TmfContextTest {
         assertEquals("toString", expected3, fContext3.toString());
     }
 
-    // ------------------------------------------------------------------------
-    // clone
-    // ------------------------------------------------------------------------
-
-    @Test
-    public void testClone() {
-        try {
-            final TmfContext context1 = fContext1.clone();
-            final TmfContext context2 = fContext2.clone();
-            final TmfContext context3 = fContext3.clone();
-
-            assertEquals("clone", context1, fContext1);
-            assertEquals("clone", context2, fContext2);
-            assertEquals("clone", context3, fContext3);
-
-            context1.setLocation(null);
-            final TmfContext context4 = context1.clone();
-            assertEquals("clone", context1, context4);
-            assertNull(context1.getLocation());
-            assertNull(context4.getLocation());
-
-        } catch (final InternalError e) {
-            fail("clone()");
-        }
-    }
-
     // ------------------------------------------------------------------------
     // setLocation, setRank, updateRank
     // ------------------------------------------------------------------------
This page took 0.024266 seconds and 5 git commands to generate.