directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcon...@apache.org
Subject svn commit: r492437 - /directory/sandbox/jconlon/osgi-services/logging-service-integration-test/src/test/java/org/apache/directory/osgi/services/logging/test/LogServiceBundleTest.java
Date Thu, 04 Jan 2007 07:59:46 GMT
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
         {



Mime
View raw message