2d505fce3d14044f0e2c1bd4cfdbe87789aa597f
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.ctf.core.tests / src / org / eclipse / tracecompass / ctf / core / tests / trace / CTFStreamInputPacketIndexTest.java
1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 Ericsson
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
12 package org.eclipse.tracecompass.ctf.core.tests.trace;
13
14 import static org.junit.Assert.assertNotNull;
15
16 import org.eclipse.tracecompass.ctf.core.CTFException;
17 import org.eclipse.tracecompass.internal.ctf.core.trace.StreamInputPacketIndex;
18 import org.eclipse.tracecompass.internal.ctf.core.trace.StreamInputPacketIndexEntry;
19 import org.junit.Before;
20 import org.junit.Test;
21
22 /**
23 * The class <code>StreamInputPacketIndexTest</code> contains tests for the
24 * class <code>{@link StreamInputPacketIndex}</code>.
25 *
26 * @author ematkho
27 * @version $Revision: 1.0 $
28 */
29 @SuppressWarnings("javadoc")
30 public class CTFStreamInputPacketIndexTest {
31
32 private StreamInputPacketIndex fixture;
33
34 /**
35 * Perform pre-test initialization.
36 *
37 * @throws CTFException
38 */
39 @Before
40 public void setUp() throws CTFException {
41 fixture = new StreamInputPacketIndex();
42 fixture.append(new StreamInputPacketIndexEntry(1L,0L));
43 }
44
45 /**
46 * Run the StreamInputPacketIndex() constructor test.
47 */
48 @Test
49 public void testStreamInputPacketIndex() {
50 assertNotNull(fixture);
51 assertNotNull(fixture.getElement(0));
52 }
53
54 }
This page took 0.032159 seconds and 4 git commands to generate.