I'm a newbie to Karaf, trying to integrate my middleware. So the first
thing I need are integration tests, which are proving a bit difficult.

I did find a very nice page on integration testing:
http://iocanel.blogspot.in/2012/01/advanced-integration-testing-with-pax.html

A problem came up with accessing provisional classes. When I add the
following code I get java.lang.NoClassDefFoundError:
org/osgi/framework/BundleListener

    @ProbeBuilder
    public TestProbeBuilder probeConfiguration(TestProbeBuilder probe) {
        probe.setHeader(Constants.DYNAMICIMPORT_PACKAGE,
"*;status=provisional");
        return probe;
    }

pom: https://github.com/laforge49/JActor2/blob/master/jactor-ktest/pom.xml
src:
https://github.com/laforge49/JActor2/blob/master/jactor-ktest/src/test/java/org/apache/karaf/KarafWithBundleTest.java

I also tried adding core to no avail:
    mavenBundle("org.osgi", "org.osgi.core", "4.3.1")

Any help would be appreciated. I've had lots of success so far with
everything except these integration tests.

Bill

Reply via email to