JB,
Ah, but I did share my pom...
As for looking at the itests of Karaf or Cellar, that is really what I
should be doing. I've found a lot of links to repositories covering
testing with pax exam, but so many of them are dead/404. Could you give
me a link to a reasonably simple example? Not being a strong OSGi
developer, I do have trouble following things. :-)
On Wed, May 22, 2013 at 1:10 PM, Jean-Baptiste Onofré <j...@nanthrax.net<mailto:j...@nanthrax.net>> wrote:
Hi Bill,
did you take a look on the Karaf or Cellar itests (we use
karaf-pax-exam) here ?
Could you share your tests pom.xml ?
Thanks,
Regards
JB
On 05/22/2013 09:33 AM, William la Forge wrote:
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/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
--jbon...@apache.org <mailto:jbon...@apache.org>
Jean-Baptiste Onofré
This is great. Just got my own felix command shell working: https://github.com/laforge49/JActor2/blob/master/jactor-kdriver/src/main/java/org/agilewiki/jactor/kdriver/Activator.javaThanks again JB!On Wed, May 22, 2013 at 2:10 PM, William la Forge <lafo...@gmail.com> wrote:
Many thanks.I've also just found the gogo runtime bundle. Thinking I can implement a shell to drive tests in a non-pax exam bundle.--b