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.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 $
*/
/**
* Launch the test.
- *
+ *
* @param args
* the command line arguments
*/
* 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.
- */
- @Test
- public void testCompare() {
- 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);
- }
}