Commit | Line | Data |
---|---|---|
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 | 12 | package org.eclipse.tracecompass.ctf.core.tests.trace; |
866e5b51 | 13 | |
866e5b51 FC |
14 | import static org.junit.Assert.assertNotNull; |
15 | ||
680f9173 | 16 | import org.eclipse.tracecompass.ctf.core.CTFException; |
f357bcd4 AM |
17 | import org.eclipse.tracecompass.internal.ctf.core.trace.StreamInputPacketIndex; |
18 | import org.eclipse.tracecompass.internal.ctf.core.trace.StreamInputPacketIndexEntry; | |
866e5b51 FC |
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>. | |
ce2388e0 | 25 | * |
a6efddce | 26 | * @author Matthew Khouzam |
866e5b51 | 27 | */ |
be6df2d8 | 28 | @SuppressWarnings("javadoc") |
d84419e1 | 29 | public class CTFStreamInputPacketIndexTest { |
866e5b51 FC |
30 | |
31 | private StreamInputPacketIndex fixture; | |
866e5b51 | 32 | |
866e5b51 FC |
33 | /** |
34 | * Perform pre-test initialization. | |
ce2388e0 | 35 | * |
680f9173 | 36 | * @throws CTFException |
866e5b51 FC |
37 | */ |
38 | @Before | |
a6efddce | 39 | public void setUp() { |
866e5b51 | 40 | fixture = new StreamInputPacketIndex(); |
04f0148f | 41 | fixture.append(new StreamInputPacketIndexEntry(1L,0L)); |
866e5b51 FC |
42 | } |
43 | ||
866e5b51 FC |
44 | /** |
45 | * Run the StreamInputPacketIndex() constructor test. | |
46 | */ | |
47 | @Test | |
48 | public void testStreamInputPacketIndex() { | |
49 | assertNotNull(fixture); | |
04f0148f | 50 | assertNotNull(fixture.getElement(0)); |
866e5b51 FC |
51 | } |
52 | ||
866e5b51 | 53 | } |