Commit | Line | Data |
---|---|---|
866e5b51 | 1 | /******************************************************************************* |
4bd7f2db | 2 | * Copyright (c) 2011, 2013 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 | ||
13 | package org.eclipse.linuxtools.ctf.core.tests; | |
14 | ||
32bf80d2 AM |
15 | import static org.junit.Assert.assertEquals; |
16 | import static org.junit.Assert.fail; | |
866e5b51 | 17 | |
a9d52b8f | 18 | import org.eclipse.linuxtools.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( |
a9d52b8f | 44 | "Plugin ID", "org.eclipse.linuxtools.ctf", Activator.PLUGIN_ID); //$NON-NLS-1$ //$NON-NLS-2$ |
866e5b51 FC |
45 | } |
46 | ||
32bf80d2 AM |
47 | @Test |
48 | public void testGetDefault() { | |
a9d52b8f | 49 | Activator plugin = Activator.getDefault(); |
866e5b51 FC |
50 | assertEquals("getDefault()", plugin, fPlugin); //$NON-NLS-1$ |
51 | } | |
52 | ||
32bf80d2 AM |
53 | @Test |
54 | public void testLog() { | |
866e5b51 | 55 | try { |
a9d52b8f | 56 | Activator.getDefault().log("Some message"); //$NON-NLS-1$ |
866e5b51 FC |
57 | } catch (Exception e) { |
58 | fail(); | |
59 | } | |
60 | } | |
61 | ||
62 | } |