1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 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
;
16 import static org
.junit
.Assume
.assumeTrue
;
18 import org
.eclipse
.linuxtools
.internal
.lttng2
.kernel
.core
.stateprovider
.CtfKernelStateInput
;
19 import org
.eclipse
.linuxtools
.tmf
.core
.statesystem
.IStateChangeInput
;
20 import org
.eclipse
.linuxtools
.tmf
.core
.tests
.shared
.CtfTmfTestTraces
;
21 import org
.junit
.BeforeClass
;
22 import org
.junit
.Test
;
25 * Tests for the LTTng 2.0 kernel state provider
27 * @author Alexandre Montplaisir
29 public class CtfKernelStateInputTest
{
31 private final static int TRACE_INDEX
= 1;
33 private static IStateChangeInput input
;
39 public static void initialize() {
40 assumeTrue(CtfTmfTestTraces
.tracesExist());
41 input
= new CtfKernelStateInput(CtfTmfTestTraces
.getTestTrace(TRACE_INDEX
));
46 * Test loading the state provider.
49 public void testOpening() {
51 testStartTime
= input
.getStartTime();
52 assertEquals(testStartTime
, StateSystemTest
.startTime
);
This page took 0.032247 seconds and 5 git commands to generate.