Commit | Line | Data |
---|---|---|
d18dd09b | 1 | /******************************************************************************* |
6e1886bc | 2 | * Copyright (c) 2009, 2010, 2013 Ericsson |
54a7a54c | 3 | * |
d18dd09b ASL |
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 | |
54a7a54c | 8 | * |
d18dd09b ASL |
9 | * Contributors: |
10 | * Francois Chouinard - Initial API and implementation | |
6e1886bc | 11 | * Alexandre Montplaisir - Port to JUnit4 |
d18dd09b ASL |
12 | *******************************************************************************/ |
13 | ||
6c13869b | 14 | package org.eclipse.linuxtools.tmf.core.tests; |
d18dd09b | 15 | |
6e1886bc | 16 | import static org.junit.Assert.assertEquals; |
d18dd09b | 17 | |
8fd82db5 | 18 | import org.eclipse.linuxtools.internal.tmf.core.Activator; |
6e1886bc | 19 | import org.junit.Test; |
8fd82db5 | 20 | |
d18dd09b | 21 | /** |
d18dd09b ASL |
22 | * Test the TMF core plug-in activator |
23 | */ | |
6e1886bc AM |
24 | @SuppressWarnings("nls") |
25 | public class TmfCorePluginTest { | |
d18dd09b | 26 | |
6e1886bc | 27 | // ------------------------------------------------------------------------ |
d18dd09b | 28 | // Attributes |
6e1886bc | 29 | // ------------------------------------------------------------------------ |
d18dd09b | 30 | |
6e1886bc AM |
31 | // Plug-in instantiation |
32 | static final Activator fPlugin = new Activator(); | |
54a7a54c | 33 | |
6e1886bc | 34 | // ------------------------------------------------------------------------ |
d18dd09b | 35 | // Test cases |
6e1886bc AM |
36 | // ------------------------------------------------------------------------ |
37 | ||
38 | /** | |
39 | * Test the plugin ID. | |
40 | */ | |
41 | @Test | |
42 | public void testTmfCorePluginId() { | |
43 | assertEquals("Plugin ID", "org.eclipse.linuxtools.tmf.core", Activator.PLUGIN_ID); | |
44 | } | |
45 | ||
46 | /** | |
47 | * Test the getDefault() static method. | |
48 | */ | |
49 | @Test | |
50 | public void testGetDefault() { | |
51 | Activator plugin = Activator.getDefault(); | |
52 | assertEquals("getDefault()", plugin, fPlugin); | |
53 | } | |
d18dd09b ASL |
54 | |
55 | } |