Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/r_osgi/R_OSGiServiceRegisterListenerTest.java')
-rw-r--r--tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/r_osgi/R_OSGiServiceRegisterListenerTest.java63
1 files changed, 63 insertions, 0 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/r_osgi/R_OSGiServiceRegisterListenerTest.java b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/r_osgi/R_OSGiServiceRegisterListenerTest.java
new file mode 100644
index 000000000..9bd69036f
--- /dev/null
+++ b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/r_osgi/R_OSGiServiceRegisterListenerTest.java
@@ -0,0 +1,63 @@
+/*******************************************************************************
+* Copyright (c) 2009 EclipseSource 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:
+* EclipseSource - initial API and implementation
+******************************************************************************/
+package org.eclipse.ecf.tests.osgi.services.distribution.r_osgi;
+
+
+import org.eclipse.ecf.core.ContainerFactory;
+import org.eclipse.ecf.core.IContainer;
+import org.eclipse.ecf.core.identity.IDFactory;
+import org.eclipse.ecf.tests.osgi.services.distribution.AbstractServiceRegisterListenerTest;
+import org.osgi.framework.ServiceReference;
+
+
+public class R_OSGiServiceRegisterListenerTest extends AbstractServiceRegisterListenerTest {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+ setClientCount(1);
+ createServerAndClients();
+ setupRemoteServiceAdapters();
+ }
+
+
+ protected void tearDown() throws Exception {
+ cleanUpServerAndClients();
+ super.tearDown();
+ }
+
+ protected IContainer createClient(int index) throws Exception {
+ return ContainerFactory.getDefault().createContainer("ecf.r_osgi.peer",
+ new Object[] { IDFactory.getDefault().createStringID(
+ "r-osgi://localhost:"+(9279+index)) });
+ }
+
+ protected IContainer createServer() throws Exception {
+ return ContainerFactory.getDefault().createContainer("ecf.r_osgi.peer",
+ new Object[] { IDFactory.getDefault().createStringID(
+ "r-osgi://localhost:9278") });
+ }
+
+
+ protected String getClientContainerName() {
+ return "ecf.r_osgi.peer";
+ }
+
+
+ public ServiceReference getReference() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}

Back to the top