Commit | Line | Data |
---|---|---|
866e5b51 | 1 | /******************************************************************************* |
c19380ab | 2 | * Copyright (c) 2011, 2015 Ericsson |
be6df2d8 | 3 | * |
866e5b51 FC |
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 | |
be6df2d8 | 8 | * |
866e5b51 FC |
9 | * Contributors: |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
f357bcd4 | 13 | package org.eclipse.tracecompass.ctf.core.tests; |
866e5b51 | 14 | |
32bf80d2 AM |
15 | import static org.junit.Assert.assertEquals; |
16 | import static org.junit.Assert.fail; | |
866e5b51 | 17 | |
f357bcd4 | 18 | import org.eclipse.tracecompass.internal.ctf.core.Activator; |
32bf80d2 | 19 | import org.junit.Test; |
866e5b51 FC |
20 | |
21 | /** | |
22 | * <b><u>CtfCorePluginTest</u></b> | |
23 | * <p> | |
24 | * Test the CTF core plug-in activator | |
25 | */ | |
be6df2d8 | 26 | @SuppressWarnings("javadoc") |
32bf80d2 | 27 | public class CtfCorePluginTest { |
866e5b51 FC |
28 | |
29 | // ------------------------------------------------------------------------ | |
30 | // Attributes | |
31 | // ------------------------------------------------------------------------ | |
32 | ||
33 | // Plug-in instantiation | |
32bf80d2 | 34 | private final static Activator fPlugin = Activator.getDefault(); |
866e5b51 | 35 | |
866e5b51 FC |
36 | |
37 | // ------------------------------------------------------------------------ | |
38 | // Test cases | |
39 | // ------------------------------------------------------------------------ | |
40 | ||
32bf80d2 AM |
41 | @Test |
42 | public void testCtfCorePluginId() { | |
866e5b51 | 43 | assertEquals( |
c19380ab | 44 | "Plugin ID", "org.eclipse.tracecompass.ctf.core", Activator.PLUGIN_ID); |
866e5b51 FC |
45 | } |
46 | ||
32bf80d2 AM |
47 | @Test |
48 | public void testGetDefault() { | |
a9d52b8f | 49 | Activator plugin = Activator.getDefault(); |
4a9c1f07 | 50 | assertEquals("getDefault()", plugin, fPlugin); |
866e5b51 FC |
51 | } |
52 | ||
32bf80d2 AM |
53 | @Test |
54 | public void testLog() { | |
866e5b51 | 55 | try { |
4311ac8b | 56 | Activator.log("Some message"); |
866e5b51 FC |
57 | } catch (Exception e) { |
58 | fail(); | |
59 | } | |
60 | } | |
61 | ||
62 | } |