Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Chouinard2012-03-09 17:41:17 -0500
committerFrancois Chouinard2012-03-12 10:30:12 -0400
commite885d4489ac24677b90b1b9486fe2888e4d7b12d (patch)
treebf67dbdaf26f22486ed302eb336577565025425f /lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests
parentbcdc8131d9c5c386655c4a0acea9f84e63a9cc84 (diff)
downloadorg.eclipse.linuxtools-e885d4489ac24677b90b1b9486fe2888e4d7b12d.tar.gz
org.eclipse.linuxtools-e885d4489ac24677b90b1b9486fe2888e4d7b12d.tar.xz
org.eclipse.linuxtools-e885d4489ac24677b90b1b9486fe2888e4d7b12d.zip
Finish grooming the LTTng2 structure
Diffstat (limited to 'lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests')
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/META-INF/MANIFEST.MF2
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/plugin.properties12
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/pom.xml4
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/Activator.java2
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/ActivatorTest.java101
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/AllTests.java (renamed from lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/AllLTTngUITests.java)17
6 files changed, 129 insertions, 9 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/META-INF/MANIFEST.MF b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/META-INF/MANIFEST.MF
index a2220e88c5..612fe53d22 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/META-INF/MANIFEST.MF
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.eclipse.linuxtools.lttng2.kernel.ui.tests
-Bundle-Version: 0.5.0.qualifier
+Bundle-Version: 0.1.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-Vendor: %Bundle-Vendor
Require-Bundle: org.junit;bundle-version="3.8.2",
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/plugin.properties b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/plugin.properties
index 671a585cef..0215cb26b9 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/plugin.properties
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/plugin.properties
@@ -1,3 +1,13 @@
-#Properties file for org.eclipse.linuxtools.lttng.ui.tests
+#*******************************************************************************
+# Copyright (c) 2012 Ericsson
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Ericsson - initial API and implementation
+#********************************************************************************
+
Bundle-Vendor = Eclipse Linux Tools
Bundle-Name = LTTng UI Unit Test Suite \ No newline at end of file
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/pom.xml b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/pom.xml
index 3674c4a970..040793998d 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/pom.xml
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/pom.xml
@@ -39,8 +39,8 @@
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
- <testSuite>org.eclipse.linuxtools.lttng.ui.tests</testSuite>
- <testClass>org.eclipse.linuxtools.lttng.ui.tests.AllLTTngUITests</testClass>
+ <testSuite>org.eclipse.linuxtools.lttng2.kernel.ui.tests</testSuite>
+ <testClass>org.eclipse.linuxtools.lttng2.kernel.ui.tests.AllTests</testClass>
<useUIHarness>true</useUIHarness>
<useUIThread>true</useUIThread>
<product>org.eclipse.sdk.ide</product>
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/Activator.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/Activator.java
index b9801688f1..6586643ab2 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/Activator.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/Activator.java
@@ -27,7 +27,7 @@ public class Activator extends AbstractUIPlugin {
/**
* The plug-in ID
*/
- public static final String PLUGIN_ID = "org.eclipse.linuxtools.lttng2.ui.tests"; //$NON-NLS-1$
+ public static final String PLUGIN_ID = "org.eclipse.linuxtools.lttng2.kernel.ui.tests"; //$NON-NLS-1$
/**
* The shared instance
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/ActivatorTest.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/ActivatorTest.java
new file mode 100644
index 0000000000..90b2c42a09
--- /dev/null
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/ActivatorTest.java
@@ -0,0 +1,101 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson
+ *
+ * All rights reserved. This program and the accompanying materials are
+ * made available under the terms of the Eclipse Public License v1.0 which
+ * accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Francois Chouinard - Initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.linuxtools.lttng2.kernel.ui.tests;
+
+import junit.framework.TestCase;
+
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * <b><u>ActivatorTest</u></b>
+ * <p>
+ * Test suite for the Activator class
+ * <p>
+ */
+public class ActivatorTest extends TestCase {
+
+ // ------------------------------------------------------------------------
+ // JUnit
+ // ------------------------------------------------------------------------
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @BeforeClass
+ public static void setUpBeforeClass() throws Exception {
+ }
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @AfterClass
+ public static void tearDownAfterClass() throws Exception {
+ }
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ @Override
+ public void setUp() throws Exception {
+ }
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ @Override
+ public void tearDown() throws Exception {
+ }
+
+ // ------------------------------------------------------------------------
+ // Tests
+ // ------------------------------------------------------------------------
+
+ /**
+ * Test method for {@link org.eclipse.linuxtools.lttng2.kernel.ui.Activator#Activator()}.
+ */
+ @Test
+ public void testActivator() {
+ assertTrue(true);
+ }
+
+ /**
+ * Test method for {@link org.eclipse.linuxtools.lttng2.kernel.ui.Activator#getDefault()}.
+ */
+ @Test
+ public void testGetDefault() {
+ assertTrue(true);
+ }
+
+ /**
+ * Test method for {@link org.eclipse.linuxtools.lttng2.kernel.ui.Activator#start(org.osgi.framework.BundleContext)}.
+ */
+ @Test
+ public void testStartBundleContext() {
+ assertTrue(true);
+ }
+
+ /**
+ * Test method for {@link org.eclipse.linuxtools.lttng2.kernel.ui.Activator#stop(org.osgi.framework.BundleContext)}.
+ */
+ @Test
+ public void testStopBundleContext() {
+ assertTrue(true);
+ }
+
+}
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/AllLTTngUITests.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/AllTests.java
index a351506d87..a892186bff 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/AllLTTngUITests.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui.tests/src/org/eclipse/linuxtools/lttng2/kernel/ui/tests/AllTests.java
@@ -15,11 +15,20 @@ package org.eclipse.linuxtools.lttng2.kernel.ui.tests;
import junit.framework.Test;
import junit.framework.TestSuite;
-public class AllLTTngUITests {
+/**
+ * <b><u>AllTests</u></b>
+ * <p>
+ */
+public class AllTests {
+
public static Test suite() {
- TestSuite suite = new TestSuite(AllLTTngUITests.class.getName());
- //$JUnit-BEGIN$
- //$JUnit-END$
+ TestSuite suite = new TestSuite(AllTests.class.getName());
+ // $JUnit-BEGIN$
+
+ // Plug-in
+ suite.addTestSuite(ActivatorTest.class);
+
+ // $JUnit-END$
return suite;
}
}

Back to the top