Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorslewis2014-06-02 20:44:52 -0400
committerslewis2014-06-02 20:44:52 -0400
commit527310f62d2445b5d061c6efc6c4cd9edfa616bd (patch)
tree99357dba308fccbb35cf5c2ab41cf05d574fb1bc /tests
parentadb2aabde8429e44665d4db3b9171795042aefd0 (diff)
downloadorg.eclipse.ecf-527310f62d2445b5d061c6efc6c4cd9edfa616bd.tar.gz
org.eclipse.ecf-527310f62d2445b5d061c6efc6c4cd9edfa616bd.tar.xz
org.eclipse.ecf-527310f62d2445b5d061c6efc6c4cd9edfa616bd.zip
Fix for update ExportRegistration properties test
Diffstat (limited to 'tests')
-rw-r--r--tests/bundles/org.eclipse.ecf.tests.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/tests/osgi/services/remoteserviceadmin/AbstractRemoteServiceRegisterTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/tests/osgi/services/remoteserviceadmin/AbstractRemoteServiceRegisterTest.java b/tests/bundles/org.eclipse.ecf.tests.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/tests/osgi/services/remoteserviceadmin/AbstractRemoteServiceRegisterTest.java
index fce9f0f12..dffbcd606 100644
--- a/tests/bundles/org.eclipse.ecf.tests.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/tests/osgi/services/remoteserviceadmin/AbstractRemoteServiceRegisterTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/tests/osgi/services/remoteserviceadmin/AbstractRemoteServiceRegisterTest.java
@@ -254,11 +254,15 @@ public abstract class AbstractRemoteServiceRegisterTest extends
props.put("testonekey", "1");
// Actually register with default service (IConcatService) as a remote service
registration = registerDefaultService(props);
+ ExportReference exportRef = null;
Thread.sleep(REGISTER_WAIT/2);
+ for(RemoteServiceAdminEvent e: remoteServiceAdminEvents)
+ if (e.getType() == RemoteServiceAdminEvent.EXPORT_REGISTRATION) exportRef = e.getExportReference();
+
+ assertTrue(exportRef != null);
// remoteServiceAdminEvents should have the Export registration
assertTrue(remoteServiceAdminEvents.size() > 0);
// Get ExportReference
- ExportReference exportRef = remoteServiceAdminEvents.get(0).getExportReference();
EndpointDescription oldED = exportRef.getExportedEndpoint();
assertNotNull(oldED);
Map<String,?> oldEDProperties = oldED.getProperties();

Back to the top