System.out.println("");
System.out.println("-------------------------------------------------------");
System.out.println(" T E S T S");
System.out.println("-------------------------------------------------------");
Felix felix = new Felix(felixConf);
try {
felix.start();
} catch (BundleException e) {
e.printStackTrace();
}
getLog().info("Felix started - Waiting for stability");
waitForStability(felix.getBundleContext());
getLog().info("Bundle Stability Reached - Waiting for runner service");
Object runner = waitForRunnerService(felix.getBundleContext());
if (runner == null) {
throw new MojoFailureException("Cannot intialize the testing framework");
}
getLog().info("Runner Service available");
invokeRun(runner, felix.getBundleContext());
try {
felix.stop();
felix.waitForStop(5000);
// Delete felix-cache
File cache = new File(m_targetDir.getAbsolutePath() + "/felix-cache");
cache.delete();
} catch (Exception e) {
getLog().error(e);