X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.tmf.core.tests%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Ftmf%2Fcore%2Ftests%2Ftrace%2FTmfTraceTest.java;h=143dc5ff3fc4e0305de66a0b2edb3280812829e3;hb=d62bb1853c3388385d5ce10b0302b3dde139c3ab;hp=14cf7fb5099c0fe8905bc709f8a688c13898e6d8;hpb=86fcaf886f0c3f852c44b45e14601558ef0d61f3;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java b/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java index 14cf7fb509..143dc5ff3f 100644 --- a/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java +++ b/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java @@ -1109,7 +1109,7 @@ public class TmfTraceTest extends TestCase { public void testGetNextAfterSeekingOnLocation_1() { - final ITmfLocation INITIAL_LOC = null; + final ITmfLocation INITIAL_LOC = null; final long INITIAL_TS = 1; final int NB_READS = 20; @@ -1132,7 +1132,7 @@ public class TmfTraceTest extends TestCase { public void testGetNextAfterSeekingOnLocation_2() { - final ITmfLocation INITIAL_LOC = fTrace.seekEvent(1L).getLocation(); + final ITmfLocation INITIAL_LOC = fTrace.seekEvent(1L).getLocation(); final long INITIAL_TS = 2; final int NB_READS = 20; @@ -1153,7 +1153,7 @@ public class TmfTraceTest extends TestCase { public void testGetNextAfterSeekingOnLocation_3() { - final ITmfLocation INITIAL_LOC = fTrace.seekEvent(500L).getLocation(); + final ITmfLocation INITIAL_LOC = fTrace.seekEvent(500L).getLocation(); final long INITIAL_TS = 501; final int NB_READS = 20; @@ -1175,7 +1175,7 @@ public class TmfTraceTest extends TestCase { public void testGetNextLocation() { ITmfContext context1 = fTrace.seekEvent(0); fTrace.getNext(context1); - ITmfLocation location = context1.getLocation().clone(); + ITmfLocation location = context1.getLocation(); ITmfEvent event1 = fTrace.getNext(context1); ITmfContext context2 = fTrace.seekEvent(location); ITmfEvent event2 = fTrace.getNext(context2); @@ -1185,7 +1185,7 @@ public class TmfTraceTest extends TestCase { public void testGetNextEndLocation() { ITmfContext context1 = fTrace.seekEvent(fTrace.getNbEvents() - 1); fTrace.getNext(context1); - ITmfLocation location = context1.getLocation().clone(); + ITmfLocation location = context1.getLocation(); ITmfContext context2 = fTrace.seekEvent(location); ITmfEvent event = fTrace.getNext(context2); assertNull("Event", event);