Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Boldt2006-05-29 19:06:29 -0400
committerNick Boldt2006-05-29 19:06:29 -0400
commit22290e1256ba655146f31d475a33038936403ff0 (patch)
treefe8f4ec7c234f9e60d71ac9273e94127903e0396 /plugins/org.eclipse.emf.cdo.tests
parent2404ce14cebaaf8f9ad40772dcc69cda40856c3d (diff)
downloadcdo-22290e1256ba655146f31d475a33038936403ff0.tar.gz
cdo-22290e1256ba655146f31d475a33038936403ff0.tar.xz
cdo-22290e1256ba655146f31d475a33038936403ff0.zip
[144269] refactor for consistency
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/.classpath2
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/META-INF/MANIFEST.MF4
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AllSuites.java61
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AllTests.java16
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/CDOTestPlugin.java36
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/SampleTest.java10
6 files changed, 125 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/.classpath b/plugins/org.eclipse.emf.cdo.tests/.classpath
index 4644f77d8d..065ac06e19 100644
--- a/plugins/org.eclipse.emf.cdo.tests/.classpath
+++ b/plugins/org.eclipse.emf.cdo.tests/.classpath
@@ -3,7 +3,5 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="lib" path="lib/easymock.jar"/>
- <classpathentry kind="lib" path="lib/easymockclassextension.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/plugins/org.eclipse.emf.cdo.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.tests/META-INF/MANIFEST.MF
index 865c91857f..5081e0b207 100644
--- a/plugins/org.eclipse.emf.cdo.tests/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.cdo.tests/META-INF/MANIFEST.MF
@@ -11,5 +11,5 @@ Eclipse-LazyStart: false
Export-Package: org.eclipse.emf.cdo.tests
Require-Bundle: org.eclipse.core.runtime,
org.junit,
- org.eclipse.emf.cdo
- org.eclipse.net4j
+ org.eclipse.emf.cdo.core,
+ org.eclipse.net4j.core
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AllSuites.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AllSuites.java
new file mode 100644
index 0000000000..96cecc395b
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AllSuites.java
@@ -0,0 +1,61 @@
+/**
+ * <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-05-29 23:06:29 nickb Exp $
+ */
+
+package org.eclipse.emf.cdo.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.emf.cdo.tests.AllTests.suite()
+ };
+
+ public static Test suite()
+ {
+ return new AllSuites("cdo 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.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AllTests.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AllTests.java
new file mode 100644
index 0000000000..5defe0c0b0
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AllTests.java
@@ -0,0 +1,16 @@
+package org.eclipse.emf.cdo.tests;
+
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Test for org.eclipse.emf.cdo.tests");
+// TODO: add real JUnit tests here
+ suite.addTestSuite(SampleTest.class);
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/CDOTestPlugin.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/CDOTestPlugin.java
new file mode 100644
index 0000000000..83b472d937
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/CDOTestPlugin.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: CDOTestPlugin.java,v 1.1 2006-05-29 23:06:29 nickb Exp $
+ */
+package org.eclipse.emf.cdo.tests;
+
+import org.eclipse.core.runtime.Plugin;
+
+public class CDOTestPlugin
+extends Plugin
+{
+ private static CDOTestPlugin instance;
+
+ public CDOTestPlugin()
+ {
+ super();
+ instance = this;
+ }
+
+ public static CDOTestPlugin getPlugin()
+ {
+ return instance;
+ }
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/SampleTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/SampleTest.java
new file mode 100644
index 0000000000..e91d717e6a
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/SampleTest.java
@@ -0,0 +1,10 @@
+package org.eclipse.emf.cdo.tests;
+
+import junit.framework.TestCase;
+
+public class SampleTest extends TestCase
+{
+ public static void testSample() throws Exception {
+ assertTrue(true); // TODO: add real JUnit tests here
+ }
+}

Back to the top