Move alltests plugin to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / TmfCorePluginTest.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2013 Ericsson
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 * Francois Chouinard - Initial API and implementation
11 * Alexandre Montplaisir - Port to JUnit4
12 *******************************************************************************/
13
14 package org.eclipse.linuxtools.tmf.core.tests;
15
16 import static org.junit.Assert.assertEquals;
17
18 import org.eclipse.linuxtools.internal.tmf.core.Activator;
19 import org.junit.Test;
20
21 /**
22 * Test the TMF core plug-in activator
23 */
24 public class TmfCorePluginTest {
25
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() {
42 assertEquals("Plugin ID", "org.eclipse.tracecompass.tmf.core", Activator.PLUGIN_ID);
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
54 }
This page took 0.041179 seconds and 5 git commands to generate.