Add events structures, indexes and event caches per trace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core.tests / src / org / eclipse / linuxtools / ctf / core / tests / trace / StreamInputReaderTimestampComparatorTest.java
index 1d3a3ca73e4fb852d6495e93ce4503faf7dbf2e0..3eb9429832b80bded8db5a8f04a8848fc905c047 100644 (file)
@@ -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 <code>StreamInputReaderTimestampComparatorTest</code> contains
  * tests for the class <code>{@link StreamInputReaderTimestampComparator}</code>
- * 
+ *
  * @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);
-    }
 }
This page took 0.025155 seconds and 5 git commands to generate.