Commit | Line | Data |
---|---|---|
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 | ||
6c13869b | 13 | package org.eclipse.linuxtools.lttng.core.tests.state; |
03c71d1e ASL |
14 | |
15 | import junit.framework.TestCase; | |
16 | ||
03c71d1e ASL |
17 | /** |
18 | * @author alvaro | |
19 | * | |
20 | */ | |
3b38ea61 | 21 | @SuppressWarnings("nls") |
03c71d1e | 22 | public class TestStateManager extends TestCase { |
550d787e FC |
23 | |
24 | /** | |
25 | * TODO: Not used for the time being, for experiment selection test cases | |
26 | * for package state.experiment | |
27 | */ | |
03c71d1e | 28 | public void testSetTraceSelection() { |
603e1b20 | 29 | String logName = "traceset/trace-15316events_nolost_newformat"; |
03c71d1e | 30 | |
1595249b FC |
31 | // LTTngTrace testStream = null; |
32 | // try { | |
33 | // testStream = new LTTngTrace(logName, true); | |
34 | // } catch (Exception e) { | |
603e1b20 | 35 | // e.printStackTrace(); |
1595249b FC |
36 | // } |
37 | // | |
38 | // if (testStream != null) { | |
39 | // LTTngTrace[] streamList = new LTTngTrace[1]; | |
40 | // streamList[0] = testStream; | |
550d787e FC |
41 | // TmfExperiment<LttngEvent> newExp = new |
42 | // TmfExperiment<LttngEvent>(LttngEvent.class, logName, streamList); | |
03c71d1e ASL |
43 | |
44 | //Get the Test StateManager | |
550d787e FC |
45 | // IStateTraceManager manager = StateManagerFactoryTestSupport |
46 | // .getManager(testStream); | |
03c71d1e | 47 | //Start execution. |
550d787e FC |
48 | // manager.experimentUpdated(new TmfExperimentUpdatedSignal(this, |
49 | // newExp, null), true); | |
03c71d1e ASL |
50 | |
51 | //Print events not handled. | |
8827c197 FC |
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()); | |
1595249b | 58 | // } |
03c71d1e ASL |
59 | } |
60 | } |