X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.ctf.core.tests%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Fctf%2Fcore%2Ftests%2Ftrace%2FStreamInputReaderTimestampComparatorTest.java;h=3eb9429832b80bded8db5a8f04a8848fc905c047;hb=788ddcbcf4fa90a56b6f454a7cb0bf35a8c42bf4;hp=1d3a3ca73e4fb852d6495e93ce4503faf7dbf2e0;hpb=3ef46b1ff117dd101012d66ab99ca3d538160fea;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/trace/StreamInputReaderTimestampComparatorTest.java b/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/trace/StreamInputReaderTimestampComparatorTest.java index 1d3a3ca73e..3eb9429832 100644 --- a/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/trace/StreamInputReaderTimestampComparatorTest.java +++ b/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/trace/StreamInputReaderTimestampComparatorTest.java @@ -1,22 +1,16 @@ package org.eclipse.linuxtools.ctf.core.tests.trace; -import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; -import java.nio.channels.FileChannel; - -import org.eclipse.linuxtools.ctf.core.tests.TestParams; -import org.eclipse.linuxtools.ctf.core.trace.CTFReaderException; -import org.eclipse.linuxtools.ctf.core.trace.Stream; -import org.eclipse.linuxtools.ctf.core.trace.StreamInput; -import org.eclipse.linuxtools.ctf.core.trace.StreamInputReader; -import org.eclipse.linuxtools.ctf.core.trace.StreamInputReaderTimestampComparator; -import org.junit.*; +import org.eclipse.linuxtools.internal.ctf.core.trace.StreamInputReaderTimestampComparator; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; /** * The class StreamInputReaderTimestampComparatorTest contains * tests for the class {@link StreamInputReaderTimestampComparator} - * + * * @author ematkho * @version $Revision: 1.0 $ */ @@ -26,7 +20,7 @@ public class StreamInputReaderTimestampComparatorTest { /** * Launch the test. - * + * * @param args * the command line arguments */ @@ -54,27 +48,8 @@ public class StreamInputReaderTimestampComparatorTest { * Run the StreamInputReaderTimestampComparator() constructor test. */ @Test - public void testStreamInputReaderTimestampComparator_1() throws Exception { + public void testStreamInputReaderTimestampComparator_1() { assertNotNull(fixture); } - /** - * Run the int compare(StreamInputReader,StreamInputReader) method test. - * - * @throws CTFReaderException - */ - @Test - public void testCompare() throws CTFReaderException { - StreamInputReader a, b; - a = new StreamInputReader(new StreamInput(new Stream( - TestParams.createTrace()), (FileChannel) null, - TestParams.getEmptyFile())); - a.setCurrentEvent(null); - b = new StreamInputReader(new StreamInput(new Stream( - TestParams.createTrace()), (FileChannel) null, - TestParams.getEmptyFile())); - - int result = fixture.compare(a, b); - assertEquals(0, result); - } }