I have an integration test that works half the time when I set the logging level to DEBUG. So I figured I need to use @Before, but the method does not get called.
org.apache.karaf 3.0.0.RC1 org.apache.karaf.tooling.exam 3.0.0.RC1 org.ops4j.pax.exam 2.6.0 pom: https://github.com/laforge49/JActor2/blob/master/jactor-ktest/pom.xml test source: https://github.com/laforge49/JActor2/blob/master/jactor-ktest/src/test/java/org/apache/karaf/VersionAsInProjectKarafTest.java I modeled my test on http://karaf.apache.org/manual/latest-2.3.x/developers-guide/writing-tests.html I used mavenBundle in config: @Configuration public Option[] config() { return new Option[]{karafDistributionConfiguration().frameworkUrl( maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("zip").versionAsInProject()) .karafVersion("2.2.4").name("Apache Karaf"), logLevel(LogLevelOption.LogLevel.INFO), mavenBundle("org.agilewiki.jactor", "jactor-api", "0.0.1-SNAPSHOT"), mavenBundle("org.agilewiki.jactor", "jactor-impl", "0.0.1-SNAPSHOT"), mavenBundle("org.agilewiki.jactor", "jactor-util", "0.0.1-SNAPSHOT"), mavenBundle("org.agilewiki.jactor", "jactor-test-iface", "0.0.1-SNAPSHOT"), mavenBundle("org.agilewiki.jactor", "jactor-test-service", "0.0.1-SNAPSHOT") }; } My before method is not called: @Before public void setup() throws Exception { Thread.sleep(10000); } The result I get without DEBUG and half the time with DEBUG set is: test:org.apache.karaf.VersionAsInProjectKarafTest.test:KarafTestContainer{mvn: org.apache.karaf\/apache-karaf\/3.0.0.RC1\/zip}(org.apache.karaf.VersionAsInProj ectKarafTest): org.agilewiki.jactor.testIface.Hello not found by PAXEXAM-PROBE-e 10f1edd-464b-4800-a783-7dcfd54a2a0d [93] I'm running on Windows 7. Any help would be appreciated. Thanks! Bill
