incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r813474 - /sling/trunk/installer/osgi/it/src/test/java/org/apache/sling/osgi/installer/it/BundleInstallStressTest.java
Date Thu, 10 Sep 2009 15:21:37 GMT
Author: bdelacretaz
Date: Thu Sep 10 15:21:34 2009
New Revision: 813474

URL: http://svn.apache.org/viewvc?rev=813474&view=rev
Log:
SLING-1078 - log installed bundles at beginning of test

Modified:
    sling/trunk/installer/osgi/it/src/test/java/org/apache/sling/osgi/installer/it/BundleInstallStressTest.java

Modified: sling/trunk/installer/osgi/it/src/test/java/org/apache/sling/osgi/installer/it/BundleInstallStressTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/osgi/it/src/test/java/org/apache/sling/osgi/installer/it/BundleInstallStressTest.java?rev=813474&r1=813473&r2=813474&view=diff
==============================================================================
--- sling/trunk/installer/osgi/it/src/test/java/org/apache/sling/osgi/installer/it/BundleInstallStressTest.java
(original)
+++ sling/trunk/installer/osgi/it/src/test/java/org/apache/sling/osgi/installer/it/BundleInstallStressTest.java
Thu Sep 10 15:21:34 2009
@@ -125,8 +125,10 @@
     		fail("Cycle count (" + cycleCount + ") should be >= 1");
     	}
     	
+    	
     	final int initialBundleCount = bundleContext.getBundles().length;
     	log(LogService.LOG_INFO,"Initial bundle count=" + initialBundleCount);
+    	logInstalledBundles();
     	
     	// Start by installing all bundles
     	log(LogService.LOG_INFO,"Registering all test bundles, " + testBundles.size() + " resources");
@@ -177,9 +179,7 @@
 			@Override
 			void onFailure() {
 				log(LogService.LOG_INFO, "Failure: " + additionalInfo());
-				for(Bundle b : bundleContext.getBundles()) {
-					log(LogService.LOG_INFO, "Installed bundle: " + b.getSymbolicName());
-				}
+				logInstalledBundles();
 			}
 			
 			@Override
@@ -205,4 +205,10 @@
     	
     	return result;
     }
+    
+    private void logInstalledBundles() {
+		for(Bundle b : bundleContext.getBundles()) {
+			log(LogService.LOG_INFO, "Installed bundle: " + b.getSymbolicName());
+		}
+    }
 }



Mime
View raw message