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>
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
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.lttng2
.kernel
.core
.tests
.stateprovider
;
15 import static org
.junit
.Assert
.assertEquals
;
17 import org
.eclipse
.linuxtools
.internal
.lttng2
.kernel
.core
.stateprovider
.CtfKernelStateInput
;
18 import org
.eclipse
.linuxtools
.tmf
.core
.exceptions
.TmfTraceException
;
19 import org
.eclipse
.linuxtools
.tmf
.core
.statesystem
.IStateChangeInput
;
20 import org
.junit
.BeforeClass
;
21 import org
.junit
.Test
;
24 * Tests for the LTTng 2.0 kernel state provider
26 * @author Alexandre Montplaisir
28 public class CtfKernelStateInputTest
{
30 static IStateChangeInput input
;
35 * @throws TmfTraceException
36 * If we can't find the test traces
39 public static void initialize() throws TmfTraceException
{
40 input
= new CtfKernelStateInput(CtfTestFiles
.getTestTrace());
45 * Test loading the state provider.
48 public void testOpening() {
50 testStartTime
= input
.getStartTime();
51 assertEquals(testStartTime
, CtfTestFiles
.startTime
);
This page took 0.040708 seconds and 5 git commands to generate.