~ubuntu-branches/ubuntu/utopic/eclipse-linuxtools/utopic

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/state/TestStateManager.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2014-05-12 18:11:40 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140512181140-w237r3vsah1tmybz
Tags: 2.2.1-1
* New upstream release.
* Refreshed d/patches.
* Removed eclipse-cdt-valgrind-remote package, all its functionality
  is now provided by eclipse-cdt-profiling-framework-remote.
* Added remove-license-feature.patch.
* Bump Standards-Version to 3.9.5.
* Enable eclipse-changelog package.
* Enable eclipse-rpm-editor package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
public class TestStateManager extends TestCase {
22
 
 
23
 
        /**
24
 
         * TODO: Not used for the time being, for experiment selection test cases
25
 
         * for package state.experiment
26
 
         */
27
 
        public void testSetTraceSelection() {
28
 
//              String logName = "traceset/trace-15316events_nolost_newformat";
29
 
                
30
 
//              LTTngTrace testStream = null;
31
 
//              try {
32
 
//                      testStream = new LTTngTrace(logName, true);
33
 
//              } catch (Exception e) {
34
 
//                      e.printStackTrace();
35
 
//              }
36
 
//
37
 
//              if (testStream != null) {
38
 
//                  LTTngTrace[] streamList = new LTTngTrace[1];
39
 
//                      streamList[0] = testStream;
40
 
                        // TmfExperiment<LttngEvent> newExp = new
41
 
                        // TmfExperiment<LttngEvent>(LttngEvent.class, logName, streamList);
42
 
                        
43
 
                        //Get the Test StateManager
44
 
                        // IStateTraceManager manager = StateManagerFactoryTestSupport
45
 
                        // .getManager(testStream);
46
 
                        //Start execution.
47
 
                        // manager.experimentUpdated(new TmfExperimentUpdatedSignal(this,
48
 
                        // newExp, null), true);
49
 
                        
50
 
                        //Print events not handled.
51
 
                        // Set<String> notHandledEvents = manager.getEventsNotHandled();
52
 
                        // StringBuilder sb = new StringBuilder();
53
 
                        // for (String event : notHandledEvents) {
54
 
                        // sb.append("\n" + event);
55
 
                        // }
56
 
                        // TraceDebug.debug("Events not Handled: " + sb.toString());
57
 
//              }
58
 
        }
59
 
}