You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by jc...@apache.org on 2007/01/04 08:59:46 UTC

svn commit: r492437 - /directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java

Author: jconlon
Date: Wed Jan  3 23:59:45 2007
New Revision: 492437

URL: http://svn.apache.org/viewvc?view=rev&rev=492437
Log:
Different platforms may have different numbers of bundles loaded in them. Removed an assert to test that number.

Modified:
    directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java

Modified: directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java?view=diff&rev=492437&r1=492436&r2=492437
==============================================================================
--- directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java (original)
+++ directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java Wed Jan  3 23:59:45 2007
@@ -101,7 +101,6 @@
         BundleContext bundleContext = getBundleContext();
         assertNotNull( bundleContext );
 
-        assertEquals( 17, bundleContext.getBundles().length );
     }
 
 
@@ -126,10 +125,12 @@
             logService.log( LogService.LOG_WARNING, "Found LogService. " );
             Bundle[] bundles = context.getBundles();
             logService.log( LogService.LOG_DEBUG, "Loaded bundles:" );
-            for ( Bundle bundle : bundles )
+            for ( int i = 0; i < bundles.length; i++ )
             {
+                Bundle bundle = bundles[i];
                 logService.log( LogService.LOG_DEBUG, bundle.getSymbolicName() );
             }
+           
         }
         finally
         {