X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.tmf.core.tests%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Ftmf%2Fcore%2Ftests%2Ftrace%2FTmfExperimentTest.java;h=d3ca984e19179661c85b0ff2c7633254dbedc55c;hb=d62bb1853c3388385d5ce10b0302b3dde139c3ab;hp=6c8f03f5d39aafdcf2d17ef6b18fc064e8b95408;hpb=1e1bef822097e1241e5fc7754bdb2be53de7aa86;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfExperimentTest.java b/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfExperimentTest.java index 6c8f03f5d3..d3ca984e19 100644 --- a/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfExperimentTest.java +++ b/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfExperimentTest.java @@ -800,7 +800,7 @@ public class TmfExperimentTest extends TestCase { public void testGetNextLocation() { ITmfContext context1 = fExperiment.seekEvent(0); fExperiment.getNext(context1); - ITmfLocation location = context1.getLocation().clone(); + ITmfLocation location = context1.getLocation(); ITmfEvent event1 = fExperiment.getNext(context1); ITmfContext context2 = fExperiment.seekEvent(location); ITmfEvent event2 = fExperiment.getNext(context2); @@ -810,7 +810,7 @@ public class TmfExperimentTest extends TestCase { public void testGetNextEndLocation() { ITmfContext context1 = fExperiment.seekEvent(fExperiment.getNbEvents() - 1); fExperiment.getNext(context1); - ITmfLocation location = context1.getLocation().clone(); + ITmfLocation location = context1.getLocation(); ITmfContext context2 = fExperiment.seekEvent(location); ITmfEvent event = fExperiment.getNext(context2); assertNull("Event", event);