Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.core.tests / src / org / eclipse / linuxtools / lttng2 / kernel / core / tests / stateprovider / CtfKernelStateInputTest.java
CommitLineData
efc403bb
AM
1/*******************************************************************************
2 * Copyright (c) 2012 Ericsson
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;
8020be3c 16
dc0f7bfe 17import org.eclipse.linuxtools.internal.lttng2.kernel.core.stateprovider.CtfKernelStateInput;
b4f71e4a 18import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
18ab1d18 19import org.eclipse.linuxtools.tmf.core.statesystem.IStateChangeInput;
efc403bb
AM
20import org.junit.AfterClass;
21import org.junit.BeforeClass;
22import org.junit.Test;
efc403bb
AM
23
24/**
25 * Tests for the LTTng 2.0 kernel state provider
e743c3b8 26 *
efc403bb
AM
27 * @author alexmont
28 *
29 */
e743c3b8 30@SuppressWarnings("javadoc")
dc0f7bfe 31public class CtfKernelStateInputTest {
efc403bb 32
ebd67b34 33 static IStateChangeInput input;
efc403bb
AM
34
35 @BeforeClass
b4f71e4a 36 public static void initialize() throws TmfTraceException {
dc0f7bfe 37 input = new CtfKernelStateInput(CtfTestFiles.getTestTrace());
efc403bb
AM
38
39 }
40
41 @AfterClass
42 public static void cleanup() {
43 //
44 }
45
46 @Test
47 public void testOpening() {
48 long testStartTime;
49 testStartTime = input.getStartTime();
dc0f7bfe 50 assertEquals(testStartTime, CtfTestFiles.startTime);
efc403bb
AM
51 }
52
d26f90fd
AM
53 //FIXME re-enable once we offer history-less state systems again
54// @Test
55// public void testRunning() {
56// StateSystem ss = new StateSystem();
57// input.assignTargetStateSystem(ss);
58// input.run();
59// }
efc403bb
AM
60
61}
This page took 0.030483 seconds and 5 git commands to generate.