summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-20 17:35:26 (EDT)
committerEike Stepper2007-09-20 17:35:26 (EDT)
commit8ae951698ae1507ea9e49c9597be2376005049c7 (patch)
treed71cfec865c4fb3ff917431357dd4486752749bf
parent7682e784098eb78316ca3ffdc347685a8034b13c (diff)
downloadcdo-8ae951698ae1507ea9e49c9597be2376005049c7.zip
cdo-8ae951698ae1507ea9e49c9597be2376005049c7.tar.gz
cdo-8ae951698ae1507ea9e49c9597be2376005049c7.tar.bz2
[202417] Provide Net4j builds
https://bugs.eclipse.org/bugs/show_bug.cgi?id=202417
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/AllTests.java39
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TestBufferPool.java9
-rw-r--r--plugins/org.eclipse.net4j.tests/test.xml2
3 files changed, 43 insertions, 7 deletions
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/AllTests.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/AllTests.java
new file mode 100644
index 0000000..0258242
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/AllTests.java
@@ -0,0 +1,39 @@
+/***************************************************************************
+ * Copyright (c) 2004 - 2007 Eike Stepper, Germany.
+ * 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:
+ * Eike Stepper - initial API and implementation
+ **************************************************************************/
+package org.eclipse.net4j;
+
+import org.eclipse.net4j.tests.TestBufferPool;
+import org.eclipse.net4j.util.tests.MonitorTest;
+import org.eclipse.net4j.util.tests.SortedFileMapTest;
+import org.eclipse.net4j.util.tests.SynchronizingCorrelatorTest;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * @author Eike Stepper
+ */
+public class AllTests
+{
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("Tests for Net4j");
+
+ // $JUnit-BEGIN$
+ suite.addTestSuite(MonitorTest.class);
+ suite.addTestSuite(SortedFileMapTest.class);
+ suite.addTestSuite(SynchronizingCorrelatorTest.class);
+ suite.addTestSuite(TestBufferPool.class);
+ // $JUnit-END$
+
+ return suite;
+ }
+}
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TestBufferPool.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TestBufferPool.java
index 04f9974..3091873 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TestBufferPool.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TestBufferPool.java
@@ -13,10 +13,9 @@ package org.eclipse.net4j.tests;
import org.eclipse.net4j.IBuffer;
import org.eclipse.net4j.IBufferPool;
import org.eclipse.net4j.Net4jUtil;
-import org.eclipse.net4j.internal.util.om.trace.PrintTraceHandler;
import org.eclipse.net4j.util.ReflectUtil;
import org.eclipse.net4j.util.lifecycle.LifecycleUtil;
-import org.eclipse.net4j.util.om.OMPlatform;
+import org.eclipse.net4j.util.tests.AbstractOMTest;
import java.util.ArrayList;
import java.util.Collection;
@@ -24,16 +23,14 @@ import java.util.Collection;
/**
* @author Eike Stepper
*/
-public class TestBufferPool
+public class TestBufferPool extends AbstractOMTest
{
private static IBufferPool bufferPool = Net4jUtil.createBufferPool();
private static Collection<byte[]> memory = new ArrayList<byte[]>();
- public static void main(String[] args) throws InterruptedException
+ public void testBufferPool() throws Exception
{
- OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE);
- OMPlatform.INSTANCE.setDebugging(true);
LifecycleUtil.activate(bufferPool);
IBuffer[] buffers = new IBuffer[10];
diff --git a/plugins/org.eclipse.net4j.tests/test.xml b/plugins/org.eclipse.net4j.tests/test.xml
index 3166f11..ea6ff17 100644
--- a/plugins/org.eclipse.net4j.tests/test.xml
+++ b/plugins/org.eclipse.net4j.tests/test.xml
@@ -26,7 +26,7 @@
<ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
<property name="data-dir" value="${emf-folder}"/>
<property name="plugin-name" value="${plugin-name}"/>
- <property name="classname" value="org.eclipse.emf.test.build.AllSuites"/>
+ <property name="classname" value="org.eclipse.net4j.AllTests"/>
</ant>
</target>