Hi Max, you already have an example in the karaf distribution:
https://github.com/apache/karaf/tree/master/examples/karaf-itest-example Basically, if your tests class extends KarafTestSupport, you can directly use the executeCommand() method. Regards JB On 06/12/2018 18:50, Max Spring wrote: > For testing purpose I like to trigger Karaf console commands in a test > container brought up through Pax Exam in Junit, so that the command's > output could be grabbed for validation. > Would someone know a good example to start with? > > I already have a rich set of test cases using Pax Exam, but not for > running Karaf commands. > > Thanks! > -Max -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
