lttng: Move the UST memory analysis to use ILttngUstEventLayout
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.ust.core.tests / src / org / eclipse / tracecompass / lttng2 / ust / core / tests / analysis / memory / UstMemoryAnalysisModuleTest.java
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
13 package org.eclipse.tracecompass.lttng2.ust.core.tests.analysis.memory;
14
15 import static org.junit.Assert.assertNotNull;
16 import static org.junit.Assert.assertTrue;
17
18 import org.eclipse.tracecompass.lttng2.ust.core.analysis.memory.UstMemoryAnalysisModule;
19 import org.eclipse.tracecompass.tmf.core.analysis.TmfAnalysisRequirement;
20 import org.junit.Before;
21 import org.junit.Ignore;
22 import org.junit.Test;
23
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 */
45 @Ignore("Need to assign a trace to the module to check the requirements now")
46 @Test
47 public void testGetAnalysisRequirements() {
48 Iterable<TmfAnalysisRequirement> requirements = fUstAnalysisModule.getAnalysisRequirements();
49
50 assertNotNull(requirements);
51 assertTrue(requirements.iterator().hasNext());
52 }
53
54 }
This page took 0.03241 seconds and 5 git commands to generate.