ctf: Remove the callsite support
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.ctf.core.tests / src / org / eclipse / tracecompass / ctf / core / tests / trace / CTFStreamInputPacketIndexTest.java
CommitLineData
4bd7f2db 1/*******************************************************************************
ed902a2b 2 * Copyright (c) 2013, 2014 Ericsson
4bd7f2db
AM
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Matthew Khouzam - Initial API and implementation
10 *******************************************************************************/
11
f357bcd4 12package org.eclipse.tracecompass.ctf.core.tests.trace;
866e5b51 13
866e5b51
FC
14import static org.junit.Assert.assertNotNull;
15
680f9173 16import org.eclipse.tracecompass.ctf.core.CTFException;
f357bcd4
AM
17import org.eclipse.tracecompass.internal.ctf.core.trace.StreamInputPacketIndex;
18import org.eclipse.tracecompass.internal.ctf.core.trace.StreamInputPacketIndexEntry;
866e5b51
FC
19import org.junit.Before;
20import org.junit.Test;
21
22/**
23 * The class <code>StreamInputPacketIndexTest</code> contains tests for the
24 * class <code>{@link StreamInputPacketIndex}</code>.
ce2388e0 25 *
866e5b51
FC
26 * @author ematkho
27 * @version $Revision: 1.0 $
28 */
be6df2d8 29@SuppressWarnings("javadoc")
d84419e1 30public class CTFStreamInputPacketIndexTest {
866e5b51
FC
31
32 private StreamInputPacketIndex fixture;
866e5b51 33
866e5b51
FC
34 /**
35 * Perform pre-test initialization.
ce2388e0 36 *
680f9173 37 * @throws CTFException
866e5b51
FC
38 */
39 @Before
680f9173 40 public void setUp() throws CTFException {
866e5b51 41 fixture = new StreamInputPacketIndex();
04f0148f 42 fixture.append(new StreamInputPacketIndexEntry(1L,0L));
866e5b51
FC
43 }
44
866e5b51
FC
45 /**
46 * Run the StreamInputPacketIndex() constructor test.
47 */
48 @Test
49 public void testStreamInputPacketIndex() {
50 assertNotNull(fixture);
04f0148f 51 assertNotNull(fixture.getElement(0));
866e5b51
FC
52 }
53
866e5b51 54}
This page took 0.062513 seconds and 5 git commands to generate.