ctf: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.ctf.core.tests / src / org / eclipse / tracecompass / ctf / core / tests / CtfCorePluginTest.java
1 /*******************************************************************************
2 * Copyright (c) 2011, 2015 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.tracecompass.ctf.core.tests;
14
15 import static org.junit.Assert.assertEquals;
16 import static org.junit.Assert.fail;
17
18 import org.eclipse.tracecompass.internal.ctf.core.Activator;
19 import org.junit.Test;
20
21 /**
22 * <b><u>CtfCorePluginTest</u></b>
23 * <p>
24 * Test the CTF core plug-in activator
25 */
26 @SuppressWarnings("javadoc")
27 public class CtfCorePluginTest {
28
29 // ------------------------------------------------------------------------
30 // Attributes
31 // ------------------------------------------------------------------------
32
33 // Plug-in instantiation
34 private final static Activator fPlugin = Activator.getDefault();
35
36
37 // ------------------------------------------------------------------------
38 // Test cases
39 // ------------------------------------------------------------------------
40
41 @Test
42 public void testCtfCorePluginId() {
43 assertEquals(
44 "Plugin ID", "org.eclipse.tracecompass.ctf.core", Activator.PLUGIN_ID);
45 }
46
47 @Test
48 public void testGetDefault() {
49 Activator plugin = Activator.getDefault();
50 assertEquals("getDefault()", plugin, fPlugin);
51 }
52
53 @Test
54 public void testLog() {
55 try {
56 Activator.log("Some message");
57 } catch (Exception e) {
58 fail();
59 }
60 }
61
62 }
This page took 0.046496 seconds and 5 git commands to generate.