1.1 --- a/ko-felix-test/src/test/java/org/netbeans/html/ko/felix/test/KOFx.java Sun Dec 14 14:36:30 2014 +0100
1.2 +++ b/ko-felix-test/src/test/java/org/netbeans/html/ko/felix/test/KOFx.java Thu Nov 26 20:59:51 2015 +0100
1.3 @@ -60,8 +60,10 @@
1.4 private Object result;
1.5 private Object inst;
1.6 private int count;
1.7 + private final Class<?> itClass;
1.8
1.9 - KOFx(Object p, Method m) {
1.10 + KOFx(Class<?> itClass, Object p, Method m) {
1.11 + this.itClass = itClass;
1.12 this.p = p;
1.13 this.m = m;
1.14 }
1.15 @@ -90,7 +92,7 @@
1.16 boolean notify = true;
1.17 Closeable a = null;
1.18 try {
1.19 - a = KnockoutFelixIT.activateInOSGi(p);
1.20 + a = (Closeable) itClass.getMethod("activateInOSGi", Object.class).invoke(null, p);
1.21 if (inst == null) {
1.22 inst = m.getDeclaringClass().newInstance();
1.23 }