Monster merge from the integration branch. Still some problems left and JUnits failing.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.tests / src / org / eclipse / linuxtools / lttng / tests / state / TestStateManager.java
CommitLineData
03c71d1e
ASL
1/*******************************************************************************
2 * Copyright (c) 2009 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.lttng.tests.state;
14
15import junit.framework.TestCase;
16
03c71d1e 17import org.eclipse.linuxtools.lttng.trace.LTTngTrace;
03c71d1e
ASL
18
19/**
20 * @author alvaro
21 *
22 */
23public class TestStateManager extends TestCase {
550d787e
FC
24
25 /**
26 * TODO: Not used for the time being, for experiment selection test cases
27 * for package state.experiment
28 */
03c71d1e
ASL
29 public void testSetTraceSelection() {
30 String logName = "traceset/trace1";
31
32 LTTngTrace testStream = null;
33 try {
34 testStream = new LTTngTrace(logName);
35 } catch (Exception e) {
36 e.printStackTrace();
37 }
38
39 if (testStream != null) {
40 LTTngTrace[] streamList = new LTTngTrace[1];
41 streamList[0] = testStream;
550d787e
FC
42 // TmfExperiment<LttngEvent> newExp = new
43 // TmfExperiment<LttngEvent>(LttngEvent.class, logName, streamList);
03c71d1e
ASL
44
45 //Get the Test StateManager
550d787e
FC
46 // IStateTraceManager manager = StateManagerFactoryTestSupport
47 // .getManager(testStream);
03c71d1e 48 //Start execution.
550d787e
FC
49 // manager.experimentUpdated(new TmfExperimentUpdatedSignal(this,
50 // newExp, null), true);
03c71d1e
ASL
51
52 //Print events not handled.
8827c197
FC
53 // Set<String> notHandledEvents = manager.getEventsNotHandled();
54 // StringBuilder sb = new StringBuilder();
55 // for (String event : notHandledEvents) {
56 // sb.append("\n" + event);
57 // }
58 // TraceDebug.debug("Events not Handled: " + sb.toString());
03c71d1e
ASL
59 }
60 }
61}
This page took 0.026728 seconds and 5 git commands to generate.