Re: Executing a Karaf command in Pax Exam Test

2017-08-13 Thread Kerry
Thanks Achim. I also discovered from that code the BootFinished class.. very useful to know. On 13/08/17 13:52, Achim Nierbeck wrote: Hi, take a look at these lines, they'll give you something similar I'm sure:

Re: Executing a Karaf command in Pax Exam Test

2017-08-13 Thread Achim Nierbeck
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.

Executing a Karaf command in Pax Exam Test

2017-08-13 Thread Kerry
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: