import java.util.Set;
import org.eclipse.tracecompass.ctf.core.CTFException;
-import org.eclipse.tracecompass.ctf.core.event.EventDefinition;
+import org.eclipse.tracecompass.ctf.core.event.IEventDefinition;
import org.eclipse.tracecompass.ctf.core.event.types.Definition;
import org.eclipse.tracecompass.ctf.core.event.types.Encoding;
import org.eclipse.tracecompass.ctf.core.event.types.ICompositeDefinition;
import org.eclipse.tracecompass.ctf.core.trace.CTFTrace;
import org.eclipse.tracecompass.ctf.core.trace.ICTFStream;
import org.eclipse.tracecompass.internal.ctf.core.event.EventDeclaration;
+import org.eclipse.tracecompass.internal.ctf.core.event.EventDefinition;
import org.eclipse.tracecompass.internal.ctf.core.trace.CTFStream;
import org.eclipse.tracecompass.testtraces.ctf.CtfTestTrace;
import org.junit.Before;
* The class <code>StreamInputReaderTest</code> contains tests for the class
* <code>{@link CTFStreamInputReader}</code>.
*
- * @author ematkho
- * @version $Revision: 1.0 $
+ * @author Matthew Khouzam
*/
@SuppressWarnings("javadoc")
public class CTFStreamInputReaderTest {
*/
@Test
public void testGetCurrentEvent() {
- EventDefinition result = fixture.getCurrentEvent();
- assertNotNull(result);
+ assertNotNull(fixture.getCurrentEvent());
}
/**
*/
@Test
public void testGetCurrentPacketContext() {
- EventDefinition currentEvent = fixture.getCurrentEvent();
+ IEventDefinition currentEvent = fixture.getCurrentEvent();
assertNotNull(currentEvent);
ICompositeDefinition result = currentEvent.getPacketContext();
assertNotNull(result);
public void testGoToLastEvent2() throws CTFException {
long timestamp = -1;
while (fixture.readNextEvent().equals(CTFResponse.OK)) {
- EventDefinition currentEvent = fixture.getCurrentEvent();
+ IEventDefinition currentEvent = fixture.getCurrentEvent();
assertNotNull(currentEvent);
timestamp = currentEvent.getTimestamp();
}
private long goToEnd() throws CTFException {
fixture.goToLastEvent();
- EventDefinition currentEvent = fixture.getCurrentEvent();
+ IEventDefinition currentEvent = fixture.getCurrentEvent();
assertNotNull(currentEvent);
return currentEvent.getTimestamp();
}