Fix for streaming and reconnection. Added standalone releng for lttng.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core.tests / src / org / eclipse / linuxtools / lttng / core / tests / state / TestStateManager.java
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
13 package org.eclipse.linuxtools.lttng.core.tests.state;
14
15 import junit.framework.TestCase;
16
17 /**
18 * @author alvaro
19 *
20 */
21 @SuppressWarnings("nls")
22 public class TestStateManager extends TestCase {
23
24 /**
25 * TODO: Not used for the time being, for experiment selection test cases
26 * for package state.experiment
27 */
28 public void testSetTraceSelection() {
29 String logName = "traceset/trace-15316events_nolost_newformat";
30
31 // LTTngTrace testStream = null;
32 // try {
33 // testStream = new LTTngTrace(logName, true);
34 // } catch (Exception e) {
35 // e.printStackTrace();
36 // }
37 //
38 // if (testStream != null) {
39 // LTTngTrace[] streamList = new LTTngTrace[1];
40 // streamList[0] = testStream;
41 // TmfExperiment<LttngEvent> newExp = new
42 // TmfExperiment<LttngEvent>(LttngEvent.class, logName, streamList);
43
44 //Get the Test StateManager
45 // IStateTraceManager manager = StateManagerFactoryTestSupport
46 // .getManager(testStream);
47 //Start execution.
48 // manager.experimentUpdated(new TmfExperimentUpdatedSignal(this,
49 // newExp, null), true);
50
51 //Print events not handled.
52 // Set<String> notHandledEvents = manager.getEventsNotHandled();
53 // StringBuilder sb = new StringBuilder();
54 // for (String event : notHandledEvents) {
55 // sb.append("\n" + event);
56 // }
57 // TraceDebug.debug("Events not Handled: " + sb.toString());
58 // }
59 }
60 }
This page took 0.030996 seconds and 5 git commands to generate.