Hello,

If I define PAX EXAM configuration as:

public static Option[] getConfiguration() {
    ...
    mavenBundle().groupId(" myGroupId").artifactId(" 
myArtifactId").version("1.0.0" ).start(),
    ...
}

then execution of JUnit method waits all bundles to be deployed and started 
before entering test():

@Test
public void test() {
    // my code here
}

but if I have configuration like this:

public static Option[] getConfiguration() {
    ...
    KarafDistributionOption. features(maven().groupId(" myGroupId")
                .artifactId("myArtifactId"). version("1.0.0").type("xml"). 
classifier("features"), "my-feature"),
    ...
}

so when I have all my bundles inside feature.xml specified then execution of my 
JUnit's test() method doesn't wait for all bundles to be loaded and started.

How can I tell PAX-EXAM/Karaf to wait for all bundles to be loaded and started?

Thank you in advance,
Milan

Reply via email to