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()); + } + } }