ctf: Fix API inconsistencies
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core.tests / src / org / eclipse / linuxtools / ctf / core / tests / CtfCorePluginTest.java
1 /*******************************************************************************
2 * Copyright (c) 2011, 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
13 package org.eclipse.linuxtools.ctf.core.tests;
14
15 import junit.framework.TestCase;
16
17 import org.eclipse.linuxtools.internal.ctf.core.Activator;
18
19 /**
20 * <b><u>CtfCorePluginTest</u></b>
21 * <p>
22 * Test the CTF core plug-in activator
23 */
24 @SuppressWarnings("javadoc")
25 public class CtfCorePluginTest extends TestCase {
26
27 // ------------------------------------------------------------------------
28 // Attributes
29 // ------------------------------------------------------------------------
30
31 // Plug-in instantiation
32 static final Activator fPlugin = Activator.getDefault();
33
34 // ------------------------------------------------------------------------
35 // Housekeping
36 // ------------------------------------------------------------------------
37
38 /**
39 * @param name
40 * the test name
41 */
42 public CtfCorePluginTest(String name) {
43 super(name);
44 }
45
46 @Override
47 protected void setUp() throws Exception {
48 super.setUp();
49 }
50
51 @Override
52 protected void tearDown() throws Exception {
53 super.tearDown();
54 }
55
56 // ------------------------------------------------------------------------
57 // Test cases
58 // ------------------------------------------------------------------------
59
60 public static void testCtfCorePluginId() {
61 assertEquals(
62 "Plugin ID", "org.eclipse.linuxtools.ctf", Activator.PLUGIN_ID); //$NON-NLS-1$ //$NON-NLS-2$
63 }
64
65 public static void testGetDefault() {
66 Activator plugin = Activator.getDefault();
67 assertEquals("getDefault()", plugin, fPlugin); //$NON-NLS-1$
68 }
69
70 public static void testLog() {
71 try {
72 Activator.getDefault().log("Some message"); //$NON-NLS-1$
73 } catch (Exception e) {
74 fail();
75 }
76 }
77
78 }
This page took 0.032301 seconds and 5 git commands to generate.