tmf: Rename packages to org.eclipse.tracecompass.*
[deliverable/tracecompass.git] / org.eclipse.tracecompass.lttng2.kernel.core.tests / src / org / eclipse / linuxtools / lttng2 / kernel / core / tests / stateprovider / LttngKernelStateProviderTest.java
CommitLineData
efc403bb 1/*******************************************************************************
94cce698 2 * Copyright (c) 2012, 2013 Ericsson
efc403bb
AM
3 * Copyright (c) 2010, 2011 École Polytechnique de Montréal
4 * Copyright (c) 2010, 2011 Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
e743c3b8 5 *
efc403bb
AM
6 * All rights reserved. This program and the accompanying materials are
7 * made available under the terms of the Eclipse Public License v1.0 which
8 * accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
e743c3b8 10 *
efc403bb
AM
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.lttng2.kernel.core.tests.stateprovider;
14
b4f71e4a 15import static org.junit.Assert.assertEquals;
92ba8466 16import static org.junit.Assume.assumeTrue;
8020be3c 17
d3ba47d4 18import org.eclipse.linuxtools.internal.lttng2.kernel.core.stateprovider.LttngKernelStateProvider;
2bdf0193
AM
19import org.eclipse.tracecompass.tmf.core.statesystem.ITmfStateProvider;
20import org.eclipse.tracecompass.tmf.ctf.core.tests.shared.CtfTmfTestTrace;
efc403bb
AM
21import org.junit.BeforeClass;
22import org.junit.Test;
efc403bb
AM
23
24/**
d3ba47d4 25 * Tests for the {@link LttngKernelStateProvider}
e743c3b8 26 *
2ba3d0a1 27 * @author Alexandre Montplaisir
efc403bb 28 */
d3ba47d4 29public class LttngKernelStateProviderTest {
efc403bb 30
9ac63b5b 31 private static final CtfTmfTestTrace testTrace = CtfTmfTestTrace.TRACE2;
92ba8466 32
0fe46f2a 33 private static ITmfStateProvider input;
efc403bb 34
2ba3d0a1
AM
35 /**
36 * Set-up.
2ba3d0a1 37 */
efc403bb 38 @BeforeClass
92ba8466 39 public static void initialize() {
9ac63b5b
AM
40 assumeTrue(testTrace.exists());
41 input = new LttngKernelStateProvider(testTrace.getTrace());
efc403bb
AM
42
43 }
44
2ba3d0a1
AM
45 /**
46 * Test loading the state provider.
47 */
efc403bb
AM
48 @Test
49 public void testOpening() {
50 long testStartTime;
51 testStartTime = input.getStartTime();
92ba8466 52 assertEquals(testStartTime, StateSystemTest.startTime);
efc403bb
AM
53 }
54
efc403bb 55}
This page took 0.050376 seconds and 5 git commands to generate.