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.
@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"),
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