summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Boldt2006-04-17 17:13:10 (EDT)
committerNick Boldt2006-04-17 17:13:10 (EDT)
commit34e9d858c3a7e6c3e2f6e1dc97c4dd29de9983ec (patch)
tree540e2ae7b6f53a9110f7c31b5143f4d920becf67
parent478e5885293a3e0bdadb1ca44e5d603b44921aec (diff)
downloadcdo-34e9d858c3a7e6c3e2f6e1dc97c4dd29de9983ec.zip
cdo-34e9d858c3a7e6c3e2f6e1dc97c4dd29de9983ec.tar.gz
cdo-34e9d858c3a7e6c3e2f6e1dc97c4dd29de9983ec.tar.bz2
[133431] add missing files and tweak manifest files
-rw-r--r--plugins/org.eclipse.net4j.tests/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllSuites.java62
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllTests.java16
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/Net4jTestPlugin.java36
-rw-r--r--plugins/org.eclipse.net4j.tests/test.xml66
5 files changed, 181 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.net4j.tests/META-INF/MANIFEST.MF
index c3c1e46..3e27c14 100644
--- a/plugins/org.eclipse.net4j.tests/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.net4j.tests/META-INF/MANIFEST.MF
@@ -3,6 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.net4j.tests;singleton:=true
Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.eclipse.net4j.tests.Net4jTestPlugin
Bundle-ClassPath: library.jar,
lib/easymock.jar,
lib/easymockclassextension.jar
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllSuites.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllSuites.java
new file mode 100644
index 0000000..9bc879f
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllSuites.java
@@ -0,0 +1,62 @@
+/**
+ * <copyright>
+ *
+ * Copyright (c) 2006 IBM Corporation and others.
+ * 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:
+ * IBM - Initial API and implementation
+ *
+ * </copyright>
+ *
+ * $Id: AllSuites.java,v 1.1 2006-04-17 21:13:10 nickb Exp $
+ */
+
+package org.eclipse.net4j.tests;
+
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllSuites extends TestSuite
+{
+ private static Test[] suites = new Test []{
+ // list all test suites here
+ org.eclipse.net4j.tests.AllTests.suite()
+ ,org.eclipse.net4j.spring.tests.AllTests.suite()
+ };
+
+ public static Test suite()
+ {
+ return new AllSuites("EMF Build JUnit Test Suite");
+ }
+
+ public AllSuites()
+ {
+ super();
+ populateSuite();
+ }
+
+ public AllSuites(Class theClass)
+ {
+ super(theClass);
+ populateSuite();
+ }
+
+ public AllSuites(String name)
+ {
+ super(name);
+ populateSuite();
+ }
+
+ protected void populateSuite()
+ {
+ for (int i = 0; i < suites.length; i++)
+ {
+ addTest(suites[i]);
+ }
+ }
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllTests.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllTests.java
new file mode 100644
index 0000000..2c4b061
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllTests.java
@@ -0,0 +1,16 @@
+package org.eclipse.net4j.tests;
+
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Test for org.eclipse.net4j.tests");
+// TODO: connect JUnit tests here.
+
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/Net4jTestPlugin.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/Net4jTestPlugin.java
new file mode 100644
index 0000000..eb7740b
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/Net4jTestPlugin.java
@@ -0,0 +1,36 @@
+/**
+ * <copyright>
+ *
+ * Copyright (c) 2002-2004 IBM Corporation and others.
+ * 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:
+ * IBM - Initial API and implementation
+ *
+ * </copyright>
+ *
+ * $Id: Net4jTestPlugin.java,v 1.1 2006-04-17 21:13:10 nickb Exp $
+ */
+package org.eclipse.net4j.tests;
+
+import org.eclipse.core.runtime.Plugin;
+
+public class Net4jTestPlugin
+extends Plugin
+{
+ private static Net4jTestPlugin instance;
+
+ public Net4jTestPlugin()
+ {
+ super();
+ instance = this;
+ }
+
+ public static Net4jTestPlugin getPlugin()
+ {
+ return instance;
+ }
+}
diff --git a/plugins/org.eclipse.net4j.tests/test.xml b/plugins/org.eclipse.net4j.tests/test.xml
new file mode 100644
index 0000000..6a3e0cd
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/test.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+/**
+ * <copyright>
+ *
+ * Copyright (c) 2006 IBM Corporation and others.
+ * 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:
+ * IBM - Initial API and implementation
+ *
+ * </copyright>
+ *
+ * $Id$
+ */
+-->
+
+<project name="testsuite" default="run" basedir=".">
+ <!-- The property ${eclipse-home} should be passed into this script -->
+ <!-- Set a meaningful default value for when it is not. -->
+ <property name="eclipse-home" value="${basedir}\..\.."/>
+
+ <!-- sets the properties plugin-name, and library-file -->
+ <property name="plugin-name" value="org.eclipse.jet.tests"/>
+ <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>
+
+ <!-- This target holds all initialization code that needs to be done for -->
+ <!-- all tests that are to be run. Initialization for individual tests -->
+ <!-- should be done within the body of the suite target. -->
+ <target name="init">
+ <tstamp/>
+ <delete>
+ <fileset dir="${eclipse-home}" includes="org*.xml"/>
+ </delete>
+ </target>
+
+ <!-- This target defines the tests that need to be run. -->
+ <target name="suite">
+ <property name="emft-folder" value="${eclipse-home}/emf_folder"/>
+ <delete dir="${emft-folder}" quiet="true"/>
+ <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
+ <property name="data-dir" value="${emft-folder}"/>
+ <property name="plugin-name" value="${plugin-name}"/>
+ <property name="classname" value="org.eclipse.net4j.tests.AllSuites"/>
+ </ant>
+ </target>
+
+ <!-- This target holds code to cleanup the testing environment after -->
+ <!-- after all of the tests have been run. You can use this target to -->
+ <!-- delete temporary files that have been created. -->
+ <target name="cleanup">
+ </target>
+
+ <!-- This target runs the test suite. Any actions that need to happen -->
+ <!-- after all the tests have been run should go here. -->
+ <target name="run" depends="init,suite,cleanup">
+ <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
+ <property name="includes" value="org*.xml"/>
+ <property name="output-file" value="${plugin-name}.xml"/>
+ </ant>
+ </target>
+
+</project>