Merge branch 'master' into lttng_2_0_control_dev
[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.ctf.core.CtfCorePlugin;
18
19 /**
20 * <b><u>CtfCorePluginTest</u></b>
21 * <p>
22 * Test the CTF core plug-in activator
23 */
24 public class CtfCorePluginTest extends TestCase {
25
26 // ------------------------------------------------------------------------
27 // Attributes
28 // ------------------------------------------------------------------------
29
30 // Plug-in instantiation
31 static final CtfCorePlugin fPlugin = CtfCorePlugin.getDefault();
32
33 // ------------------------------------------------------------------------
34 // Housekeping
35 // ------------------------------------------------------------------------
36
37 /**
38 * @param name
39 * the test name
40 */
41 public CtfCorePluginTest(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 static void testCtfCorePluginId() {
60 assertEquals(
61 "Plugin ID", "org.eclipse.linuxtools.ctf", CtfCorePlugin.PLUGIN_ID); //$NON-NLS-1$ //$NON-NLS-2$
62 }
63
64 public static void testGetDefault() {
65 CtfCorePlugin plugin = CtfCorePlugin.getDefault();
66 assertEquals("getDefault()", plugin, fPlugin); //$NON-NLS-1$
67 }
68
69 public static void testLog() {
70 try {
71 CtfCorePlugin.getDefault().log("Some message"); //$NON-NLS-1$
72 } catch (Exception e) {
73 fail();
74 }
75 }
76
77 }
This page took 0.051084 seconds and 6 git commands to generate.