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