Hi,

take a look at these lines, they'll give you something similar I'm sure:
https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-ITest/src/test/java/de/nierbeck/cassandra/itest/TestBase.java#L150-L180

btw. if in doubt, there are a couple of tests around that class using it.
So there should be plenty of samples ;)

regards, Achim


2017-08-13 14:06 GMT+02:00 Kerry <[email protected]>:

> Hi,
>
> I'm writing an integration test and in it I want to execute the Karaf
> 'install' command. I don't want to provision the bundle at Karaf start-up
> but specifically attempt to install it in a test to ensure a certain
> behaviour occurs.
>
> I found this page: http://planet.jboss.org/post/a
> dvanced_integration_testing_with_pax_exam_karaf and it makes use of a
> 'CommandProcessor' interface but searching the current Karaf source code it
> appears this class no longer exists.
>
> Is there a way that I can achieve the above?
>
> Thanks
>
> Kerry
>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to