Hi Bill,

the Pax-Web Project also uses Pax-Exam and Pax-Exam-Karaf very intensively,
you might find some more examples there :-) [1]
And it's probably best to look at the 3.0.x branch of it, due to that trunk
is being merged to a newer version right now :)

regards, Achim

[1] - https://github.com/ops4j/org.ops4j.pax.web/tree/pax-web-3.0.x


2013/5/22 William la Forge <[email protected]>

> 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.java
>
> Thanks again JB!
>
>
> On Wed, May 22, 2013 at 2:10 PM, William la Forge <[email protected]>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
>>
>>
>> On Wed, May 22, 2013 at 1:24 PM, Jean-Baptiste Onofré 
>> <[email protected]>wrote:
>>
>>> Sorry Bill, I missed your links. I gonna take a look.
>>>
>>> Regarding Cellar itests, you can take a look there:
>>>
>>> http://svn.apache.org/repos/**asf/karaf/cellar/branches/**
>>> cellar-2.3.x/itests/<http://svn.apache.org/repos/asf/karaf/cellar/branches/cellar-2.3.x/itests/>
>>>
>>> especially:
>>> http://svn.apache.org/repos/**asf/karaf/cellar/branches/**
>>> cellar-2.3.x/itests/src/test/**java/org/apache/karaf/cellar/**
>>> itests/CellarTestSupport.java<http://svn.apache.org/repos/asf/karaf/cellar/branches/cellar-2.3.x/itests/src/test/java/org/apache/karaf/cellar/itests/CellarTestSupport.java>
>>>
>>> Regards
>>> JB
>>>
>>>
>>> On 05/22/2013 09:48 AM, William la Forge wrote:
>>>
>>>> JB,
>>>>
>>>> Ah, but I did share my pom...
>>>> pom: https://github.com/laforge49/**JActor2/blob/master/jactor-**
>>>> ktest/pom.xml<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<https://github.com/laforge49/JActor2/blob/master/jactor-ktest/src/test/java/org/apache/karaf/KarafWithBundleTest.java>
>>>>
>>>> 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é <[email protected]
>>>> <mailto:[email protected]>> 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<http://iocanel.blogspot.in/__2012/01/advanced-integration-__testing-with-pax.html>
>>>>
>>>>         <http://iocanel.blogspot.in/**2012/01/advanced-integration-**
>>>> testing-with-pax.html<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<https://github.com/laforge49/__JActor2/blob/master/jactor-__ktest/pom.xml>
>>>>         <https://github.com/laforge49/**JActor2/blob/master/jactor-**
>>>> ktest/pom.xml<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<https://github.com/laforge49/__JActor2/blob/master/jactor-__ktest/src/test/java/org/__apache/karaf/__KarafWithBundleTest.java>
>>>>
>>>>         <https://github.com/laforge49/**JActor2/blob/master/jactor-**
>>>> ktest/src/test/java/org/**apache/karaf/**KarafWithBundleTest.java<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
>>>>
>>>>
>>>>     --
>>>>     Jean-Baptiste Onofré
>>>>     [email protected] <mailto:[email protected]>
>>>>
>>>>     http://blog.nanthrax.net
>>>>     Talend - http://www.talend.com
>>>>
>>>>
>>>>
>>> --
>>> Jean-Baptiste Onofré
>>> [email protected]
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to