On Tuesday 19 July 2016 18:53:29 Oliver Lietz wrote:
> hi all,
>
> I've added a new module org.apache.sling.testing.paxexam in trunk/testing
> recently. It provides Sling's Launchpad Karaf Features as Options for Pax
> Exam (without Karaf) to setup a Sling instance with less boilerplate code:
>
> * allows to run ITs in the same module (with the build artifact under test)
> * allows using different versions in build and tests
> * allows overriding of versions
>
> Setting up a Sling Launchpad with some additional "Features":
Default configurations are now available as Options by using
slingLaunchpadOakTarConfiguration(String, int) and baseConfiguration() from
TestSupport:
protected Option launchpad() {
final int httpPort = findFreePort();
final String workingDirectory = workingDirectory();
return composite(
slingLaunchpadOakTarConfiguration(workingDirectory, httpPort),
slingJcrOak(),
slingLaunchpadOak(),
slingExtensionI18n(),
slingExtensionModels(),
slingScriptingJsp(),
mavenBundle().groupId("org.apache.jackrabbit").artifactId("oak-
segment").version(SlingOptions.versionResolver)
);
}
Regards,
O.