Hello,
We have successfully run integration tests with fuse-fabric using FuseTestSupport and the proper setup of the @Configuration method.
But now I would like to implement similar integration tests in another project that is using:
fuse-esb-7.1.0.fuse-047
Where can I please find an example of an integration test using FuseTestSupport for Fuse ESB 7.1 (build 047) ?
The only documentation I could find was quite old and dealt with AbstractIntegrationTest.
I am using the following maven dependency for paxexam - do I need more maven dependencies?
<dependency> | ||
<groupId>org.fusesource.tooling.testing</groupId> | ||
<artifactId>pax-exam-karaf</artifactId> | ||
<version>${fuse.version}</version> | ||
<scope>test</scope> | ||
</dependency> |
And here is my @Configuration code from Fuse Fabric, which naturally needs to be modified to work in "old" Fuse ESB:
@Configuration | |
public Option[] config() { | |
return new Option[]{ | |
mavenConfiguration("http://mymavenrepo@snapshots"), | |
karafDistributionConfiguration().frameworkUrl( | |
maven().groupId("org.fusesource.fabric").artifactId("fuse-fabric").versionAsInProject().type("zip")) | |
.karafVersion("2.3.0").name("Fabric Karaf Distro").unpackDirectory(new File("target/paxexam/unpack/")), | |
useOwnExamBundlesStartLevel(50), | |
mavenBundle("org.fusesource.tooling.testing", "pax-exam-karaf", MavenUtils.getArtifactVersion("org.fusesource.tooling.testing", "pax-exam-karaf")), | |
wrappedBundle("file:target/integration-tests-" + projectVersion + ".jar"), | |
logLevel(LogLevelOption.LogLevel.WARN), | |
keepRuntimeFolder() | |
}; | |
} |
Can someone please advice how the above code should look.
Thanks
Steve