Analysis: Add unit tests for dependency graph builder module
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.graph.core.tests / stubs / org / eclipse / tracecompass / analysis / graph / core / tests / stubs / module / GraphBuilderModuleStub.java
1 /*******************************************************************************
2 * Copyright (c) 2015 École Polytechnique de Montréal
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
10 package org.eclipse.tracecompass.analysis.graph.core.tests.stubs.module;
11
12 import org.eclipse.tracecompass.analysis.graph.core.building.ITmfGraphProvider;
13 import org.eclipse.tracecompass.analysis.graph.core.building.TmfGraphBuilderModule;
14 import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
15
16 /**
17 * Graph builder module stub
18 *
19 * @author Geneviève Bastien
20 * @author Francis Giraldeau
21 */
22 public class GraphBuilderModuleStub extends TmfGraphBuilderModule {
23
24 /** The analysis id */
25 public static final String ANALYSIS_ID = "org.eclipse.linuxtools.tmf.analysis.graph.tests.stub";
26
27 @Override
28 protected ITmfGraphProvider getGraphProvider() {
29 ITmfTrace trace = getTrace();
30 if (trace == null) {
31 throw new NullPointerException();
32 }
33 return new GraphProviderStub(trace);
34 }
35
36 }
This page took 0.035137 seconds and 5 git commands to generate.