tmf remote: Add unit tests for tmf.remote.core
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.remote.core.tests / src / org / eclipse / tracecompass / tmf / remote / core / tests / TmfRemoteCorePluginTest.java
1 /*******************************************************************************
2 * Copyright (c) 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 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.tmf.remote.core.tests;
14
15 import static org.junit.Assert.assertEquals;
16
17 import org.eclipse.tracecompass.internal.tmf.remote.core.Activator;
18 import org.junit.Test;
19
20 /**
21 * Test the TMF remote core plug-in activator
22 */
23 public class TmfRemoteCorePluginTest {
24
25 // ------------------------------------------------------------------------
26 // Attributes
27 // ------------------------------------------------------------------------
28
29 // Plug-in instantiation
30 static final Activator fPlugin = new Activator();
31
32 // ------------------------------------------------------------------------
33 // Test cases
34 // ------------------------------------------------------------------------
35
36 /**
37 * Test the plugin ID.
38 */
39 @Test
40 public void testTmfCorePluginId() {
41 assertEquals("Plugin ID", "org.eclipse.tracecompass.tmf.remote.core", Activator.PLUGIN_ID);
42 }
43
44 /**
45 * Test the getDefault() static method.
46 */
47 @Test
48 public void testGetDefault() {
49 Activator plugin = Activator.getDefault();
50 assertEquals("getDefault()", plugin, fPlugin);
51 }
52 }
This page took 0.032564 seconds and 5 git commands to generate.