Commit | Line | Data |
---|---|---|
d18dd09b ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009, 2010 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 | *******************************************************************************/ | |
12 | ||
6c13869b | 13 | package org.eclipse.linuxtools.tmf.core.tests; |
d18dd09b | 14 | |
4918b8f2 | 15 | import org.eclipse.linuxtools.internal.tmf.core.TmfCorePlugin; |
d18dd09b ASL |
16 | |
17 | import junit.framework.TestCase; | |
18 | ||
19 | /** | |
20 | * <b><u>TmfCorePluginTest</u></b> | |
21 | * <p> | |
22 | * Test the TMF core plug-in activator | |
23 | */ | |
3b38ea61 | 24 | @SuppressWarnings("nls") |
d18dd09b ASL |
25 | public class TmfCorePluginTest extends TestCase { |
26 | ||
27 | // ------------------------------------------------------------------------ | |
28 | // Attributes | |
29 | // ------------------------------------------------------------------------ | |
30 | ||
31 | // Plug-in instantiation | |
32 | static final TmfCorePlugin fPlugin = new TmfCorePlugin(); | |
33 | ||
34 | // ------------------------------------------------------------------------ | |
35 | // Housekeping | |
36 | // ------------------------------------------------------------------------ | |
37 | ||
38 | /** | |
39 | * @param name the test name | |
40 | */ | |
41 | public TmfCorePluginTest(String name) { | |
42 | super(name); | |
43 | } | |
44 | ||
45 | @Override | |
46 | protected void setUp() throws Exception { | |
47 | super.setUp(); | |
48 | } | |
49 | ||
50 | @Override | |
51 | protected void tearDown() throws Exception { | |
52 | super.tearDown(); | |
53 | } | |
54 | ||
55 | // ------------------------------------------------------------------------ | |
56 | // Test cases | |
57 | // ------------------------------------------------------------------------ | |
58 | ||
59 | public void testTmfCorePluginId() throws Exception { | |
5179fc01 | 60 | assertEquals("Plugin ID", "org.eclipse.linuxtools.tmf.core", TmfCorePlugin.PLUGIN_ID); |
d18dd09b ASL |
61 | } |
62 | ||
63 | public void testGetDefault() throws Exception { | |
64 | TmfCorePlugin plugin = TmfCorePlugin.getDefault(); | |
65 | assertEquals("getDefault()", plugin, fPlugin); | |
66 | } | |
67 | ||
68 | } |