[jboss-cvs] JBossAS SVN: r100670 - projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/example/src/test/java/org/jboss/test/osgi/example/blueprint.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Feb 7 17:55:32 EST 2010


Author: thomas.diesler at jboss.com
Date: 2010-02-07 17:55:32 -0500 (Sun, 07 Feb 2010)
New Revision: 100670

Modified:
   projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/example/src/test/java/org/jboss/test/osgi/example/blueprint/BlueprintTestCase.java
Log:
Add symbolic name filter

Modified: projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/example/src/test/java/org/jboss/test/osgi/example/blueprint/BlueprintTestCase.java
===================================================================
--- projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/example/src/test/java/org/jboss/test/osgi/example/blueprint/BlueprintTestCase.java	2010-02-07 22:45:53 UTC (rev 100669)
+++ projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/example/src/test/java/org/jboss/test/osgi/example/blueprint/BlueprintTestCase.java	2010-02-07 22:55:32 UTC (rev 100670)
@@ -141,7 +141,11 @@
       ServiceReference sref = null;
       while (sref == null && 0 < (timeout -= 200))
       {
-         sref = context.getServiceReference(BlueprintContainer.class.getName());
+         String filter = "(osgi.blueprint.container.symbolicname=example-blueprint)";
+         ServiceReference[] srefs = context.getServiceReferences(BlueprintContainer.class.getName(), filter);
+         if (srefs != null && srefs.length > 0)
+            sref = srefs[0];
+         
          Thread.sleep(200);
       }
       assertNotNull("BlueprintContainer not null", sref);




More information about the jboss-cvs-commits mailing list