1.1 --- a/ko-osgi-test/src/main/java/org/netbeans/html/ko/osgi/test/KnockoutEquinoxTCKImpl.java Sun Jan 05 08:07:06 2014 +0100
1.2 +++ b/ko-osgi-test/src/main/java/org/netbeans/html/ko/osgi/test/KnockoutEquinoxTCKImpl.java Sun Jan 05 08:24:58 2014 +0100
1.3 @@ -116,6 +116,12 @@
1.4 }
1.5
1.6 public static void initialized() throws Exception {
1.7 + Bundle bundle = FrameworkUtil.getBundle(KnockoutEquinoxTCKImpl.class);
1.8 + if (bundle == null) {
1.9 + throw new IllegalStateException(
1.10 + "Should be loaded from a bundle. But was: " + KnockoutEquinoxTCKImpl.class.getClassLoader()
1.11 + );
1.12 + }
1.13 Class<?> classpathClass = ClassLoader.getSystemClassLoader().loadClass(
1.14 "org.netbeans.html.ko.osgi.test.KnockoutEquinoxIT"
1.15 );
2.1 --- a/ko-osgi-test/src/test/java/org/netbeans/html/ko/osgi/test/KnockoutEquinoxIT.java Sun Jan 05 08:07:06 2014 +0100
2.2 +++ b/ko-osgi-test/src/test/java/org/netbeans/html/ko/osgi/test/KnockoutEquinoxIT.java Sun Jan 05 08:24:58 2014 +0100
2.3 @@ -162,7 +162,11 @@
2.4 continue;
2.5 }
2.6 final String path = "reference:" + file.toURI().toString();
2.7 - Bundle b = f.getBundleContext().installBundle(path);
2.8 + try {
2.9 + Bundle b = f.getBundleContext().installBundle(path);
2.10 + } catch (BundleException ex) {
2.11 + LOG.log(Level.WARNING, "Cannot install " + file, ex);
2.12 + }
2.13 }
2.14 }
2.15 }