1.1 --- a/ko-osgi-test/src/test/java/org/netbeans/html/ko/osgi/test/KnockoutEquinoxTest.java Fri Jan 03 10:38:00 2014 +0100
1.2 +++ b/ko-osgi-test/src/test/java/org/netbeans/html/ko/osgi/test/KnockoutEquinoxTest.java Sat Jan 04 07:27:11 2014 +0100
1.3 @@ -60,6 +60,8 @@
1.4 import java.util.concurrent.Callable;
1.5 import java.util.concurrent.Executors;
1.6 import java.util.jar.JarFile;
1.7 +import java.util.logging.Level;
1.8 +import java.util.logging.Logger;
1.9 import net.java.html.BrwsrCtx;
1.10 import net.java.html.boot.BrowserBuilder;
1.11 import net.java.html.js.JavaScriptBody;
1.12 @@ -89,6 +91,7 @@
1.13 */
1.14 @ServiceProvider(service = KnockoutTCK.class)
1.15 public class KnockoutEquinoxTest extends KnockoutTCK {
1.16 + private static final Logger LOG = Logger.getLogger(KnockoutEquinoxTest.class.getName());
1.17 private static Framework framework;
1.18 private static File dir;
1.19 static Framework framework() throws Exception {
1.20 @@ -102,12 +105,18 @@
1.21 dir.mkdirs();
1.22 config.put(Constants.FRAMEWORK_STORAGE, dir.getPath());
1.23 config.put(Constants.FRAMEWORK_STORAGE_CLEAN, "true");
1.24 + config.put(Constants.FRAMEWORK_SYSTEMPACKAGES_EXTRA, "sun.misc");
1.25 framework = ff.newFramework(config);
1.26 framework.init();
1.27 loadClassPathBundles(framework);
1.28 framework.start();
1.29 for (Bundle b : framework.getBundleContext().getBundles()) {
1.30 - b.start();
1.31 + try {
1.32 + b.start();
1.33 + LOG.log(Level.INFO, "Started {0}", b.getSymbolicName());
1.34 + } catch (BundleException ex) {
1.35 + LOG.log(Level.WARNING, "Cannot start bundle " + b.getSymbolicName(), ex);
1.36 + }
1.37 }
1.38 return framework;
1.39 }