diff options
Diffstat (limited to 'tests/bundles/org.eclipse.ecf.tests.remoteservice.rpc/src/org/eclipse/ecf/tests/remoteservice/rpc/RpcContainerTest.java')
-rw-r--r-- | tests/bundles/org.eclipse.ecf.tests.remoteservice.rpc/src/org/eclipse/ecf/tests/remoteservice/rpc/RpcContainerTest.java | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.remoteservice.rpc/src/org/eclipse/ecf/tests/remoteservice/rpc/RpcContainerTest.java b/tests/bundles/org.eclipse.ecf.tests.remoteservice.rpc/src/org/eclipse/ecf/tests/remoteservice/rpc/RpcContainerTest.java index ae8ef4604..ef7a06f12 100644 --- a/tests/bundles/org.eclipse.ecf.tests.remoteservice.rpc/src/org/eclipse/ecf/tests/remoteservice/rpc/RpcContainerTest.java +++ b/tests/bundles/org.eclipse.ecf.tests.remoteservice.rpc/src/org/eclipse/ecf/tests/remoteservice/rpc/RpcContainerTest.java @@ -1,53 +1,53 @@ -/*******************************************************************************
- * Copyright (c) 2010-2011 Naumen. 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:
- * Pavel Samolisov - initial API and implementation
- *******************************************************************************/
-package org.eclipse.ecf.tests.remoteservice.rpc;
-
-import java.net.URI;
-import java.net.URL;
-import org.eclipse.ecf.core.ContainerTypeDescription;
-import org.eclipse.ecf.core.IContainer;
-import org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer;
-
-public class RpcContainerTest extends AbstractRpcTestCase {
-
- protected void tearDown() throws Exception {
- getContainerManager().removeAllContainers();
- }
-
- public void testCreateContainer() throws Exception {
- IContainer container = createRpcContainer(RpcConstants.TEST_ECHO_TARGET);
- assertNotNull(container);
- assertTrue(container instanceof RpcClientContainer);
- }
-
- public void testCreateContainer1() throws Exception {
- IContainer container = createRpcContainer(RpcConstants.TEST_ECHO_TARGET);
- assertNotNull(container);
- assertTrue(container instanceof RpcClientContainer);
- }
-
- public void testCreateContainer2() throws Exception {
- ContainerTypeDescription description = getContainerFactory()
- .getDescriptionByName(RpcConstants.RPC_CONTAINER_TYPE);
- IContainer container = getContainerFactory().createContainer(description,
- new Object[] { new URL(RpcConstants.TEST_ECHO_TARGET) });
- assertNotNull(container);
- assertTrue(container instanceof RpcClientContainer);
- }
-
- public void testCreateContainer3() throws Exception {
- ContainerTypeDescription description = getContainerFactory()
- .getDescriptionByName(RpcConstants.RPC_CONTAINER_TYPE);
- IContainer container = getContainerFactory().createContainer(description,
- new Object[] { new URI(RpcConstants.TEST_ECHO_TARGET) });
- assertNotNull(container);
- assertTrue(container instanceof RpcClientContainer);
- }
-}
+/******************************************************************************* + * Copyright (c) 2010-2011 Naumen. 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: + * Pavel Samolisov - initial API and implementation + *******************************************************************************/ +package org.eclipse.ecf.tests.remoteservice.rpc; + +import java.net.URI; +import java.net.URL; +import org.eclipse.ecf.core.ContainerTypeDescription; +import org.eclipse.ecf.core.IContainer; +import org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer; + +public class RpcContainerTest extends AbstractRpcTestCase { + + protected void tearDown() throws Exception { + getContainerManager().removeAllContainers(); + } + + public void testCreateContainer() throws Exception { + IContainer container = createRpcContainer(RpcConstants.TEST_ECHO_TARGET); + assertNotNull(container); + assertTrue(container instanceof RpcClientContainer); + } + + public void testCreateContainer1() throws Exception { + IContainer container = createRpcContainer(RpcConstants.TEST_ECHO_TARGET); + assertNotNull(container); + assertTrue(container instanceof RpcClientContainer); + } + + public void testCreateContainer2() throws Exception { + ContainerTypeDescription description = getContainerFactory() + .getDescriptionByName(RpcConstants.RPC_CONTAINER_TYPE); + IContainer container = getContainerFactory().createContainer(description, + new Object[] { new URL(RpcConstants.TEST_ECHO_TARGET) }); + assertNotNull(container); + assertTrue(container instanceof RpcClientContainer); + } + + public void testCreateContainer3() throws Exception { + ContainerTypeDescription description = getContainerFactory() + .getDescriptionByName(RpcConstants.RPC_CONTAINER_TYPE); + IContainer container = getContainerFactory().createContainer(description, + new Object[] { new URI(RpcConstants.TEST_ECHO_TARGET) }); + assertNotNull(container); + assertTrue(container instanceof RpcClientContainer); + } +} |