import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import org.eclipse.linuxtools.ctf.core.trace.StreamInputPacketIndexEntry;
+import org.eclipse.linuxtools.internal.ctf.core.trace.StreamInputPacketIndexEntry;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* The class <code>StreamInputPacketIndexEntryTest</code> contains tests for the
* class <code>{@link StreamInputPacketIndexEntry}</code>.
- *
+ *
* @author ematkho
* @version $Revision: 1.0 $
*/
/**
* Launch the test.
- *
+ *
* @param args
* the command line arguments
*/
*/
@Test
public void testStreamInputPacketIndexEntry_1() {
- String expectedResult = "PacketIndexEntry [offset=1, " + //$NON-NLS-1$
+ String expectedResult = "StreamInputPacketIndexEntry [offsetBytes=1, " + //$NON-NLS-1$
"timestampBegin=0, timestampEnd=0, " + //$NON-NLS-1$
- "dataOffset=0, packetSize=0, contentSize=0]"; //$NON-NLS-1$
+ "indexBegin=9223372036854775807, indexEnd=9223372036854775807]"; //$NON-NLS-1$
assertNotNull(fixture);
assertEquals(expectedResult, fixture.toString());
*/
@Test
public void testToString() {
- String expectedResult = "PacketIndexEntry [offset=1, " + //$NON-NLS-1$
- "timestampBegin=1, timestampEnd=1, " + //$NON-NLS-1$
- "dataOffset=1, packetSize=1, contentSize=1]"; //$NON-NLS-1$
+ String expectedResult = "StreamInputPacketIndexEntry [offsetBytes=1,"+ //$NON-NLS-1$
+ " timestampBegin=1, timestampEnd=1, indexBegin=9223372036854775807,"+ //$NON-NLS-1$
+ " indexEnd=9223372036854775807]"; //$NON-NLS-1$
- fixture.contentSizeBits = 1;
- fixture.dataOffsetBits = 1;
- fixture.timestampEnd = 1L;
- fixture.packetSizeBits = 1;
- fixture.timestampBegin = 1L;
+ fixture.setContentSizeBits(1);
+ fixture.setDataOffsetBits(1);
+ fixture.setTimestampEnd(1L);
+ fixture.setPacketSizeBits(1);
+ fixture.setTimestampBegin(1L);
assertEquals(expectedResult, fixture.toString());
}