Commit | Line | Data |
---|---|---|
8343b1f5 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2013, 2014 Ericsson |
8343b1f5 PT |
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 | * Patrick Tasse - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
04c0d7d3 | 13 | package org.eclipse.tracecompass.gdbtrace.core.tests; |
8343b1f5 PT |
14 | |
15 | import static org.junit.Assert.assertEquals; | |
16 | ||
17 | import org.eclipse.core.runtime.Plugin; | |
04c0d7d3 | 18 | import org.eclipse.tracecompass.internal.gdbtrace.core.GdbTraceCorePlugin; |
8343b1f5 PT |
19 | import org.junit.Test; |
20 | ||
d20ab9c3 | 21 | @SuppressWarnings("javadoc") |
8343b1f5 PT |
22 | public class GdbTraceCorePluginTest { |
23 | ||
24 | // ------------------------------------------------------------------------ | |
25 | // Attributes | |
26 | // ------------------------------------------------------------------------ | |
27 | ||
28 | // Plug-in instantiation | |
29 | private final static Plugin fPlugin = GdbTraceCorePlugin.getDefault(); | |
30 | ||
31 | // ------------------------------------------------------------------------ | |
32 | // Test cases | |
33 | // ------------------------------------------------------------------------ | |
34 | ||
35 | @Test | |
36 | public void testPluginId() { | |
37 | assertEquals("Plugin ID", "org.eclipse.linuxtools.gdbtrace.core", GdbTraceCorePlugin.PLUGIN_ID); | |
38 | } | |
39 | ||
40 | @Test | |
41 | public void testGetDefault() { | |
42 | Plugin plugin = GdbTraceCorePlugin.getDefault(); | |
d20ab9c3 | 43 | assertEquals("getDefault()", plugin, fPlugin); |
8343b1f5 PT |
44 | } |
45 | } |