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
.*;
17 import org
.junit
.AfterClass
;
18 import org
.junit
.BeforeClass
;
19 import org
.junit
.Test
;
20 import org
.eclipse
.linuxtools
.tmf
.core
.statesystem
.StateSystem
;
21 import org
.eclipse
.linuxtools
.tmf
.core
.statesystem
.helpers
.IStateChangeInput
;
22 import org
.eclipse
.linuxtools
.internal
.lttng2
.kernel
.core
.stateprovider
.CTFKernelStateInput
;
25 * Tests for the LTTng 2.0 kernel state provider
30 public class CTFKernelStateInputTest
{
32 protected static IStateChangeInput input
;
35 public static void initialize() {
36 input
= new CTFKernelStateInput(CTFTestFiles
.getTestTrace());
41 public static void cleanup() {
46 public void testOpening() {
48 testStartTime
= input
.getStartTime();
49 assertTrue(testStartTime
== CTFTestFiles
.startTime1
);
53 public void testRunning() {
54 StateSystem ss
= new StateSystem();
55 input
.assignTargetStateSystem(ss
);
56 input
.getStateSystem(); /* Let's pad that coverage... */
This page took 0.033698 seconds and 6 git commands to generate.