use of org.ops4j.pax.exam.Configuration in project aries by apache.
the class AbstractTransactionTest method localServerH2LocalTxConfiguration.
@Configuration
public Option[] localServerH2LocalTxConfiguration() {
String localRepo = System.getProperty("maven.repo.local");
if (localRepo == null) {
localRepo = System.getProperty("org.ops4j.pax.url.mvn.localRepository");
}
Option testSpecificOptions = testSpecificOptions();
return options(junitBundles(), systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value("INFO"), when(localRepo != null).useOptions(CoreOptions.vmOption("-Dorg.ops4j.pax.url.mvn.localRepository=" + localRepo)), localTxControlService(), localJdbcResourceProviderWithH2(), systemProperty(REMOTE_DB_PROPERTY).value(getRemoteDBPath()), when(testSpecificOptions != null).useOptions(testSpecificOptions), mavenBundle("org.ops4j.pax.logging", "pax-logging-api").versionAsInProject(), mavenBundle("org.ops4j.pax.logging", "pax-logging-service").versionAsInProject());
}
use of org.ops4j.pax.exam.Configuration in project aries by apache.
the class AbstractTransactionTest method localConfigAdminDrivenH2LocalTxConfiguration.
@Configuration
public Option[] localConfigAdminDrivenH2LocalTxConfiguration() {
String localRepo = System.getProperty("maven.repo.local");
if (localRepo == null) {
localRepo = System.getProperty("org.ops4j.pax.url.mvn.localRepository");
}
Option testSpecificOptions = testSpecificOptions();
return options(junitBundles(), systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value("INFO"), when(localRepo != null).useOptions(CoreOptions.vmOption("-Dorg.ops4j.pax.url.mvn.localRepository=" + localRepo)), localTxControlService(), localJdbcResourceProviderWithH2(), systemProperty(REMOTE_DB_PROPERTY).value(getRemoteDBPath()), mavenBundle("org.apache.felix", "org.apache.felix.configadmin").versionAsInProject(), systemProperty(CONFIGURED_PROVIDER_PROPERTY).value("local"), when(testSpecificOptions != null).useOptions(testSpecificOptions), mavenBundle("org.ops4j.pax.logging", "pax-logging-api").versionAsInProject(), mavenBundle("org.ops4j.pax.logging", "pax-logging-service").versionAsInProject());
}
use of org.ops4j.pax.exam.Configuration in project aries by apache.
the class AbstractTransactionTest method xaServerH2XATxConfiguration.
@Configuration
public Option[] xaServerH2XATxConfiguration() {
String localRepo = System.getProperty("maven.repo.local");
if (localRepo == null) {
localRepo = System.getProperty("org.ops4j.pax.url.mvn.localRepository");
}
Option testSpecificOptions = testSpecificOptions();
return options(junitBundles(), systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value("INFO"), when(localRepo != null).useOptions(CoreOptions.vmOption("-Dorg.ops4j.pax.url.mvn.localRepository=" + localRepo)), xaTxControlService(), xaJdbcResourceProviderWithH2(), systemProperty(REMOTE_DB_PROPERTY).value(getRemoteDBPath()), when(testSpecificOptions != null).useOptions(testSpecificOptions), mavenBundle("org.ops4j.pax.logging", "pax-logging-api").versionAsInProject(), mavenBundle("org.ops4j.pax.logging", "pax-logging-service").versionAsInProject());
}
use of org.ops4j.pax.exam.Configuration in project aries by apache.
the class AbstractTransactionTest method localConfigAdminDrivenH2XATxConfiguration.
@Configuration
public Option[] localConfigAdminDrivenH2XATxConfiguration() {
String localRepo = System.getProperty("maven.repo.local");
if (localRepo == null) {
localRepo = System.getProperty("org.ops4j.pax.url.mvn.localRepository");
}
Option testSpecificOptions = testSpecificOptions();
return options(junitBundles(), systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value("INFO"), when(localRepo != null).useOptions(CoreOptions.vmOption("-Dorg.ops4j.pax.url.mvn.localRepository=" + localRepo)), xaTxControlService(), localJdbcResourceProviderWithH2(), systemProperty(REMOTE_DB_PROPERTY).value(getRemoteDBPath()), mavenBundle("org.apache.felix", "org.apache.felix.configadmin").versionAsInProject(), systemProperty(CONFIGURED_PROVIDER_PROPERTY).value("local"), when(testSpecificOptions != null).useOptions(testSpecificOptions), mavenBundle("org.ops4j.pax.logging", "pax-logging-api").versionAsInProject(), mavenBundle("org.ops4j.pax.logging", "pax-logging-service").versionAsInProject());
}
use of org.ops4j.pax.exam.Configuration in project aries by apache.
the class FragmentTestBundleBlueprintAttribute method configuration.
@Configuration
public Option[] configuration() {
InputStream hostJar = TinyBundles.bundle().set(Constants.BUNDLE_MANIFESTVERSION, "2").set("Bundle-Blueprint", "META-INF/bp/*.xml").set(Constants.BUNDLE_SYMBOLICNAME, "org.apache.aries.test.host").build();
InputStream fragmentJar = TinyBundles.bundle().set(Constants.BUNDLE_MANIFESTVERSION, "2").set(Constants.BUNDLE_SYMBOLICNAME, "org.apache.aries.test.fragment").set(Constants.FRAGMENT_HOST, "org.apache.aries.test.host").add("META-INF/bp/bp.xml", this.getClass().getResourceAsStream("/bp.xml")).build();
return new Option[] { baseOptions(), Helper.blueprintBundles(), streamBundle(fragmentJar).noStart(), streamBundle(hostJar) };
}
Aggregations