1 /*******************************************************************************
2 * Copyright (c) 2010 Ericsson
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
10 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.lttng
.control
;
16 import org
.eclipse
.linuxtools
.lttng
.LttngTestPreparation
;
18 public class LTTngSyntheticEventProviderTextTest
extends LttngTestPreparation
{
20 // ========================================================================
22 // ========================================================================
26 // public void testPlainDataRequest() {
29 // TmfExperiment<LttngEvent> experiment = prepareTextExperimentToTest();
30 // TmfEventRequest<LttngEvent> request = prepareEventRequest(
31 // LttngEvent.class, 0, 31);
34 // experiment.sendRequest(request);
36 // request.waitForCompletion();
37 // } catch (InterruptedException e) {
38 // e.printStackTrace();
42 // assertEquals("Unexpected eventCount", 15316, feventCount);
43 // boolean expected = true;
44 // assertEquals("Events received out of expected order", expected,
51 // public void testSyntheticEventRequest() {
53 // // make sure a synthetic event provider exists and it's registered
54 // LttngSyntheticEventProvider synProvider = LttngCoreProviderFactory
55 // .getEventProvider();
57 // // make sure a TmfExperiment instance is registered as provider and
58 // // selected as current
59 // prepareTextExperimentToTest();
61 // // prepare synthetic event request
62 // TmfEventRequest<LttngSyntheticEvent> request = prepareEventRequest(
63 // LttngSyntheticEvent.class, 0, 31);
66 // synProvider.sendRequest(request);
68 // request.waitForCompletion();
69 // } catch (InterruptedException e) {
70 // e.printStackTrace();
74 // assertEquals("Unexpected eventCount", 15316, feventCount);