tmf: Use tabs in statistics view for each traces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core.tests / src / org / eclipse / linuxtools / lttng / core / tests / state / experiment / StateExperimentManagerTextTest.java
1 /*******************************************************************************
2 * Copyright (c) 2010 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 package org.eclipse.linuxtools.lttng.core.tests.state.experiment;
13
14 import org.eclipse.linuxtools.lttng.core.tests.LttngTestPreparation;
15
16 /**
17 * @author alvaro
18 *
19 */
20 public class StateExperimentManagerTextTest extends LttngTestPreparation {
21
22 /**
23 * Test method for {@link org.eclipse.linuxtools.internal.lttng.core.state.experiment.StateExperimentManager#experimentSelected_prep(org.eclipse.linuxtools.tmf.experiment.TmfExperiment)}.
24 */
25 public void testExperimentSelected_text() {
26 // System.out.println("testExperimentSelected_text: test removed");
27 // make sure a TmfExperiment instance is registered as provider and
28 // selected as current
29 // TmfExperiment<LttngEvent> experiment = prepareTextExperimentToTest();
30
31 // // Create a new Experiment manager
32 // IStateExperimentManager expManager = StateManagerFactory
33 // .getExperimentManager();
34 // expManager.waitForCompletion(true);
35 // // Configure the interval to create check points so this can be tested
36 // // with medium size files i.e. default is 50000 events
37 // StateManagerFactory.setTraceCheckPointInterval(1000L);
38 //
39 // // preparation
40 // expManager.experimentSelected_prep(experiment);
41 // // Action trigger
42 // expManager.experimentSelected(this, experiment);
43 //
44 // // Access context tree for Validation
45 // // access to the context tree
46 // LTTngTreeNode experimentNode = expManager.getSelectedExperiment();
47 // StateTraceManager traceManager = (StateTraceManager) experimentNode
48 // .getChildById(0L);
49 //
50 // // validate
51 // int numProcesses = traceManager.getCheckPointStateModel().getProcesses().length;
52 // assertEquals("Total number of processes created", 276, numProcesses);
53
54 }
55
56 /**
57 * Test method for
58 * {@link org.eclipse.linuxtools.internal.lttng.core.state.experiment.StateExperimentManager#experimentSelected_prep(org.eclipse.linuxtools.tmf.experiment.TmfExperiment)}
59 * .
60 */
61 public void testExperimentSelected_real() {
62 // System.out.println("testExperimentSelected_real: test removed");
63 // // Create a new Experiment manager context
64 // IStateExperimentManager expManager = prepareExperimentContext(true);
65 // expManager.waitForCompletion(true);
66 //
67 // // make sure a TmfExperiment instance is registered as provider and
68 // // selected as current
69 // TmfExperiment<LttngEvent> experiment = prepareExperimentToTest();
70 //
71 // // preparation
72 // expManager.experimentSelected_prep(experiment);
73 // // Action trigger
74 // expManager.experimentSelected(this, experiment);
75 //
76 // // Access context tree for Validation
77 // // access to the context tree
78 // LTTngTreeNode experimentNode = expManager.getSelectedExperiment();
79 // StateTraceManager traceManager = (StateTraceManager) experimentNode
80 // .getChildById(1L | LttngConstants.STATS_TRACE_NAME_ID);
81 //
82 // // validate
83 // int numProcesses = traceManager.getCheckPointStateModel().getProcesses().length;
84 // assertEquals("Total number of processes created", 276, numProcesses);
85
86 }
87
88 }
This page took 0.032871 seconds and 5 git commands to generate.