Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorslewis2014-02-08 05:23:46 +0000
committerslewis2014-02-08 05:23:46 +0000
commit98cf48e535be02dec89a22142b1574b1e80ae5e3 (patch)
tree99a99d685611b0070f1e7e011149711eef257128 /tests
parentf723af09ae613a47007808f36462eb058ed3a3d9 (diff)
downloadorg.eclipse.ecf-98cf48e535be02dec89a22142b1574b1e80ae5e3.tar.gz
org.eclipse.ecf-98cf48e535be02dec89a22142b1574b1e80ae5e3.tar.xz
org.eclipse.ecf-98cf48e535be02dec89a22142b1574b1e80ae5e3.zip
Removed generic server create test
Diffstat (limited to 'tests')
-rw-r--r--tests/bundles/org.eclipse.ecf.tests.core/src/org/eclipse/ecf/tests/core/GenericServerCreateTest.java88
1 files changed, 0 insertions, 88 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.core/src/org/eclipse/ecf/tests/core/GenericServerCreateTest.java b/tests/bundles/org.eclipse.ecf.tests.core/src/org/eclipse/ecf/tests/core/GenericServerCreateTest.java
deleted file mode 100644
index 4d73f11ec..000000000
--- a/tests/bundles/org.eclipse.ecf.tests.core/src/org/eclipse/ecf/tests/core/GenericServerCreateTest.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package org.eclipse.ecf.tests.core;
-
-import java.net.InetAddress;
-import java.net.InetSocketAddress;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.ecf.core.ContainerCreateException;
-import org.eclipse.ecf.core.ContainerFactory;
-import org.eclipse.ecf.core.IContainer;
-import org.eclipse.ecf.core.IContainerFactory;
-import org.eclipse.ecf.tests.ContainerAbstractTestCase;
-
-public class GenericServerCreateTest extends ContainerAbstractTestCase {
-
- private IContainerFactory containerFactory;
- private IContainer container;
-
- protected void setUp() throws Exception {
- super.setUp();
- containerFactory = ContainerFactory.getDefault();
- }
-
- protected void tearDown() throws Exception {
- super.tearDown();
- if (container != null) {
- container.disconnect();
- container.dispose();
- removeFromContainerManager(container);
- }
- containerFactory = null;
- }
-
- public void testServerCreateParam1() throws Exception {
- String id = getServerIdentity();
- container = containerFactory.createContainer(getServerContainerName(),
- new Object[] { id });
- assertNotNull(container);
- assertEquals(id, container.getID().getName());
- }
-
- public void testServerCreateParam2() throws Exception {
- container = containerFactory.createContainer(getServerContainerName());
- assertNotNull(container);
- }
-
- public void testServerCreateMapParam1() throws Exception {
- String serverId = getServerIdentity();
- Map map = new HashMap();
- map.put("id", serverId);
- container = containerFactory.createContainer(getServerContainerName(),
- map);
- assertNotNull(container);
- }
-
- public void testServerCreateMapParam2() throws Exception {
- Map map = new HashMap();
- map.put("hostname", "localhost");
- map.put("port", "" + genericServerPort);
- map.put("path", "/foo");
- container = containerFactory.createContainer(getServerContainerName(),
- map);
- assertNotNull(container);
- }
-
- public void testServerCreateMapParam3() throws Exception {
- String serverId = getServerIdentity();
- Map map = new HashMap();
- map.put("id", serverId);
- map.put("bindAddress",
- new InetSocketAddress((InetAddress) null, 0).getAddress());
- container = containerFactory.createContainer(getServerContainerName(),
- map);
- assertNotNull(container);
- }
-
- public void testServerCreateMapParam1Fail() throws Exception {
- Map map = new HashMap();
- // bogus port
- map.put("port", new Object());
- try {
- containerFactory.createContainer(getServerContainerName(), map);
- fail("create with map=" + map + " succeeded");
- } catch (ContainerCreateException e) {
- // succeed
- }
- }
-}

Back to the top