Commit | Line | Data |
---|---|---|
53e5d2d3 GM |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 É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 | * Contributors: | |
10 | * Guilliano Molaire - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
9bc60be7 | 13 | package org.eclipse.tracecompass.lttng2.ust.core.tests.analysis.memory; |
53e5d2d3 | 14 | |
53e5d2d3 GM |
15 | import static org.junit.Assert.assertNotNull; |
16 | import static org.junit.Assert.assertTrue; | |
17 | ||
9bc60be7 | 18 | import org.eclipse.tracecompass.lttng2.ust.core.analysis.memory.UstMemoryAnalysisModule; |
2bdf0193 | 19 | import org.eclipse.tracecompass.tmf.core.analysis.TmfAnalysisRequirement; |
53e5d2d3 | 20 | import org.junit.Before; |
7e452c97 | 21 | import org.junit.Ignore; |
53e5d2d3 GM |
22 | import org.junit.Test; |
23 | ||
53e5d2d3 GM |
24 | /** |
25 | * Tests for the {@link UstMemoryAnalysisModule} | |
26 | * | |
27 | * @author Guilliano Molaire | |
28 | */ | |
29 | public class UstMemoryAnalysisModuleTest { | |
30 | ||
31 | /** The analysis module */ | |
32 | private UstMemoryAnalysisModule fUstAnalysisModule; | |
33 | ||
34 | /** | |
35 | * Set-up the test | |
36 | */ | |
37 | @Before | |
38 | public void setup() { | |
39 | fUstAnalysisModule = new UstMemoryAnalysisModule(); | |
40 | } | |
41 | ||
42 | /** | |
43 | * Test for {@link UstMemoryAnalysisModule#getAnalysisRequirements()} | |
44 | */ | |
7e452c97 | 45 | @Ignore("Need to assign a trace to the module to check the requirements now") |
53e5d2d3 GM |
46 | @Test |
47 | public void testGetAnalysisRequirements() { | |
48 | Iterable<TmfAnalysisRequirement> requirements = fUstAnalysisModule.getAnalysisRequirements(); | |
7e452c97 | 49 | |
53e5d2d3 GM |
50 | assertNotNull(requirements); |
51 | assertTrue(requirements.iterator().hasNext()); | |
53e5d2d3 GM |
52 | } |
53 | ||
54 | } |