Commit | Line | Data |
---|---|---|
faf37fd0 | 1 | /******************************************************************************* |
c19380ab | 2 | * Copyright (c) 2013, 2015 École Polytechnique de Montréal |
faf37fd0 GB |
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 | * Geneviève Bastien - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.analysis.xml.ui.tests; |
faf37fd0 GB |
14 | |
15 | import static org.junit.Assert.assertEquals; | |
16 | ||
2bdf0193 | 17 | import org.eclipse.tracecompass.internal.tmf.analysis.xml.ui.Activator; |
faf37fd0 GB |
18 | import org.junit.Test; |
19 | ||
20 | /** | |
e11e382c | 21 | * Test the XML Analysis UI plug-in activator |
faf37fd0 GB |
22 | * |
23 | * @author Geneviève Bastien | |
24 | */ | |
25 | public class XmlAnalysisUiPluginTest { | |
26 | // ------------------------------------------------------------------------ | |
27 | // Attributes | |
28 | // ------------------------------------------------------------------------ | |
29 | ||
30 | // Plug-in instantiation | |
31 | static final Activator fPlugin = new Activator(); | |
32 | ||
33 | // ------------------------------------------------------------------------ | |
34 | // Test cases | |
35 | // ------------------------------------------------------------------------ | |
36 | ||
37 | /** | |
38 | * Test the plugin ID. | |
39 | */ | |
40 | @Test | |
41 | public void testTmfCorePluginId() { | |
c19380ab | 42 | assertEquals("Plugin ID", "org.eclipse.tracecompass.tmf.analysis.xml.ui", Activator.PLUGIN_ID); |
faf37fd0 GB |
43 | } |
44 | ||
45 | /** | |
46 | * Test the getDefault() static method. | |
47 | */ | |
48 | @Test | |
49 | public void testGetDefault() { | |
50 | Activator plugin = Activator.getDefault(); | |
51 | assertEquals("getDefault()", plugin, fPlugin); | |
52 | } | |
53 | } |