[Bug292967] Second part of request coalescing + unit tests + minor fixes.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.tests / src / org / eclipse / linuxtools / tmf / tests / TmfCorePluginTest.java
CommitLineData
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
13package org.eclipse.linuxtools.tmf.tests;
14
15import org.eclipse.linuxtools.tmf.TmfCorePlugin;
16
17import junit.framework.TestCase;
18
19/**
20 * <b><u>TmfCorePluginTest</u></b>
21 * <p>
22 * Test the TMF core plug-in activator
23 */
24public class TmfCorePluginTest extends TestCase {
25
26 // ------------------------------------------------------------------------
27 // Attributes
28 // ------------------------------------------------------------------------
29
30 // Plug-in instantiation
31 static final TmfCorePlugin fPlugin = new TmfCorePlugin();
32
33 // ------------------------------------------------------------------------
34 // Housekeping
35 // ------------------------------------------------------------------------
36
37 /**
38 * @param name the test name
39 */
40 public TmfCorePluginTest(String name) {
41 super(name);
42 }
43
44 @Override
45 protected void setUp() throws Exception {
46 super.setUp();
47 }
48
49 @Override
50 protected void tearDown() throws Exception {
51 super.tearDown();
52 }
53
54 // ------------------------------------------------------------------------
55 // Test cases
56 // ------------------------------------------------------------------------
57
58 public void testTmfCorePluginId() throws Exception {
59 assertEquals("Plugin ID", "org.eclipse.linuxtools.tmf", TmfCorePlugin.PLUGIN_ID);
60 }
61
62 public void testGetDefault() throws Exception {
63 TmfCorePlugin plugin = TmfCorePlugin.getDefault();
64 assertEquals("getDefault()", plugin, fPlugin);
65 }
66
67}
This page took 0.026447 seconds and 5 git commands to generate.