org.ops4j.pax.exam.OptionUtils Java Examples
The following examples show how to use
org.ops4j.pax.exam.OptionUtils.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HttpServiceTest.java From cxf with Apache License 2.0 | 5 votes |
@Configuration public Option[] config() { return OptionUtils.combine( cxfBaseConfig(), features(cxfUrl, "cxf-jaxws", "cxf-http-jetty"), testUtils(), logLevel(LogLevel.INFO), provision(serviceBundle()) ); }
Example #2
Source File: AbstractDeploymentListenerIntegrationTest.java From camunda-bpm-platform-osgi with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] createConfiguration() { Option[] basicConfiguration = super.createConfiguration(); Option testBundle = provision(createTestBundleWithProcessDefinition()); return OptionUtils.combine(basicConfiguration, testBundle); }
Example #3
Source File: ManagedProcessEngineFactoryImplIntegrationTest.java From camunda-bpm-platform-osgi with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] createConfiguration() { Option[] bundles = options( mavenBundle().groupId("commons-beanutils").artifactId("commons-beanutils").versionAsInProject(), mavenBundle().groupId("commons-collections").artifactId("commons-collections").versionAsInProject(), mavenBundle().groupId("commons-logging").artifactId("commons-logging").version("1.1.2"), mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.configadmin").versionAsInProject(), mavenBundle().groupId("org.camunda.bpm.extension.osgi").artifactId("camunda-bpm-osgi-configadmin").versionAsInProject()); return OptionUtils.combine(OptionUtils.combine(bundles, super.createConfiguration())); }
Example #4
Source File: OSGiFileInstallTestEnvironment.java From camunda-bpm-platform-osgi with Apache License 2.0 | 5 votes |
@Configuration @Override public Option[] createConfiguration() { return OptionUtils.combine( super.createConfiguration(), mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.fileinstall").versionAsInProject(), mavenBundle("org.camunda.bpm.extension.osgi", "camunda-bpm-osgi-fileinstall").versionAsInProject() ); }
Example #5
Source File: OSGiBlueprintTestEnvironment.java From camunda-bpm-platform-osgi with Apache License 2.0 | 5 votes |
@Configuration @Override public Option[] createConfiguration() { Option[] blueprintEnv = options( mavenBundle().groupId("org.assertj").artifactId("assertj-core").versionAsInProject(), mavenBundle().groupId("org.apache.aries.blueprint").artifactId("org.apache.aries.blueprint.core").versionAsInProject(), mavenBundle().groupId("org.apache.aries.proxy").artifactId("org.apache.aries.proxy").versionAsInProject(), mavenBundle().groupId("org.apache.aries").artifactId("org.apache.aries.util").versionAsInProject(), mavenBundle().groupId("org.camunda.bpm.extension.osgi").artifactId("camunda-bpm-osgi-processapplication").versionAsInProject()); Option testBundle = provision(createTestBundle()); return OptionUtils.combine(OptionUtils.combine(super.createConfiguration(), blueprintEnv), testBundle); }
Example #6
Source File: OSGiEventBridgeIntegrationTest.java From camunda-bpm-platform-osgi with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] createConfiguration() { Option[] eventing = options( mavenBundle("org.apache.felix", "org.apache.felix.eventadmin").versionAsInProject(), mavenBundle("org.apache.felix", "org.apache.felix.dependencymanager").versionAsInProject(), mavenBundle("org.apache.felix", "org.apache.felix.log").versionAsInProject(), mavenBundle("org.camunda.bpm.extension.osgi", "camunda-bpm-osgi-eventing-api").versionAsInProject(), mavenBundle("org.camunda.bpm.extension.osgi", "camunda-bpm-osgi-eventing").versionAsInProject() ); return OptionUtils.combine(eventing, super.createConfiguration()); }
Example #7
Source File: XKRSSDisableTest.java From cxf with Apache License 2.0 | 5 votes |
@Configuration public Option[] getConfig() { return OptionUtils.combine( super.getConfig(), editConfigurationFilePut("etc/org.apache.cxf.xkms.cfg", "xkms.enableXKRSS", "false") ); }
Example #8
Source File: BlueprintBasicTest.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
@Configuration public Option[] createConfiguration() { Option[] coreBundles = options( mavenBundle().groupId("org.activiti").artifactId("activiti-bpmn-model").version("6.0.0"), mavenBundle().groupId("org.activiti").artifactId("activiti-bpmn-converter").version("6.0.0"), mavenBundle().groupId("org.activiti").artifactId("activiti-process-validation").version("6.0.0"), mavenBundle().groupId("org.activiti").artifactId("activiti-image-generator").version("6.0.0"), mavenBundle().groupId("org.activiti").artifactId("activiti-form-model").version("6.0.0"), mavenBundle().groupId("org.activiti").artifactId("activiti-form-api").version("6.0.0"), mavenBundle().groupId("org.activiti").artifactId("activiti-dmn-model").version("6.0.0"), mavenBundle().groupId("org.activiti").artifactId("activiti-dmn-api").version("6.0.0"), mavenBundle().groupId("org.activiti").artifactId("activiti-engine").version("6.0.0"), mavenBundle().groupId("org.apache.commons").artifactId("commons-lang3").version("3.3.2"), mavenBundle().groupId("com.fasterxml.jackson.core").artifactId("jackson-core").version("2.7.5"), mavenBundle().groupId("com.fasterxml.jackson.core").artifactId("jackson-databind").version("2.7.5"), mavenBundle().groupId("com.fasterxml.jackson.core").artifactId("jackson-annotations").version("2.7.5"), mavenBundle().groupId("de.odysseus.juel").artifactId("juel-api").version("2.2.7"), mavenBundle().groupId("de.odysseus.juel").artifactId("juel-impl").version("2.2.7"), mavenBundle().groupId("de.odysseus.juel").artifactId("juel-spi").version("2.2.7"), mavenBundle().groupId("log4j").artifactId("log4j").version("1.2.17"), mavenBundle().groupId("joda-time").artifactId("joda-time").version("2.6"), mavenBundle().groupId("com.h2database").artifactId("h2").version("1.3.176"), mavenBundle().groupId("org.mybatis").artifactId("mybatis").version("3.4.2"), mavenBundle().groupId("org.slf4j").artifactId("slf4j-api").version("1.7.6"), mavenBundle().groupId("org.slf4j").artifactId("slf4j-log4j12").version("1.7.6").noStart(), mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.fileinstall").version("3.5.4"), mavenBundle().groupId("org.apache.aries.blueprint").artifactId("org.apache.aries.blueprint.core").version("1.6.2"), mavenBundle().groupId("org.apache.aries.proxy").artifactId("org.apache.aries.proxy").version("1.0.1"), mavenBundle().groupId("org.apache.aries").artifactId("org.apache.aries.util").version("1.1.1"), mavenBundle().groupId("org.osgi").artifactId("org.osgi.enterprise").version("5.0.0"), bundle("reference:file:target/classes")); Option[] optionArray = OptionUtils.combine(coreBundles, CoreOptions.junitBundles(), provision(createTestBundleWithProcessEngineConfiguration(), createTestBundleWithProcessDefinition(), createTestBundleWithTask())); return optionArray; }
Example #9
Source File: BlueprintIntegrationTest.java From camunda-bpm-platform-osgi with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] createConfiguration() { return OptionUtils.combine( super.createConfiguration(), mavenBundle().groupId("org.camunda.bpm.extension.osgi").artifactId("camunda-bpm-blueprint-wrapper").versionAsInProject()); }
Example #10
Source File: JaxRsServiceTest.java From cxf with Apache License 2.0 | 5 votes |
@Configuration public Option[] config() { return OptionUtils.combine( cxfBaseConfig(), features(cxfUrl, "cxf-core", "cxf-wsdl", "cxf-jaxrs", "cxf-bean-validation-core", "cxf-bean-validation"), logLevel(LogLevel.INFO), provision(serviceBundle()) ); }
Example #11
Source File: JmsServiceTest.java From cxf with Apache License 2.0 | 5 votes |
@Configuration public Option[] config() { return OptionUtils.combine( cxfBaseConfig(), features(cxfUrl, "cxf-jaxws", "cxf-transports-jms"), features(maven().groupId("org.apache.activemq").artifactId("activemq-karaf").versionAsInProject() .type("xml").classifier("features-core"), "cxf-jackson", "activemq-client"), provision(serviceBundle()) ); }
Example #12
Source File: BundlesAndNamespacesTest.java From cxf with Apache License 2.0 | 5 votes |
@Configuration public Option[] config() { return OptionUtils.combine( cxfBaseConfig(), features(cxfUrl, "aries-blueprint", "cxf-core", "cxf-jaxws"), logLevel(LogLevel.INFO) ); }
Example #13
Source File: AbstractOSGiELResolverIntegrationTest.java From camunda-bpm-platform-osgi with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] createConfiguration() { Option[] beanUtils = options( mavenBundle().groupId("commons-beanutils") .artifactId("commons-beanutils").version("1.9.1"), mavenBundle().groupId("commons-collections") .artifactId("commons-collections").version("3.2.2"), mavenBundle().groupId("commons-logging") .artifactId("commons-logging").version("1.1.2")); return OptionUtils.combine(beanUtils, super.createConfiguration()); }
Example #14
Source File: AgentTerminationTest.java From roboconf-platform with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] config() throws Exception { File resourcesDirectory = TestUtils.findApplicationDirectory( "simple" ); String appLocation = resourcesDirectory.getAbsolutePath(); return OptionUtils.combine( super.config(), systemProperty( APP_LOCATION ).value( appLocation )); }
Example #15
Source File: AgentInMemoryWithRealRecipesTest.java From roboconf-platform with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] config() throws Exception { File resourcesDirectory = TestUtils.findApplicationDirectory( "lamp" ); String roboconfVersion = ItUtils.findRoboconfVersion(); return OptionUtils.combine( super.config(), systemProperty( APP_LOCATION ).value( resourcesDirectory.getAbsolutePath()), mavenBundle() .groupId( "net.roboconf" ) .artifactId( "roboconf-plugin-script" ) .version( roboconfVersion ) .start()); }
Example #16
Source File: DmNotificationsAboutInstancesTest.java From roboconf-platform with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] config() throws Exception { File resourcesDirectory = TestUtils.findApplicationDirectory( "simple" ); String appLocation = resourcesDirectory.getAbsolutePath(); return OptionUtils.combine( super.config(), systemProperty( APP_LOCATION ).value( appLocation )); }
Example #17
Source File: ExecuteScriptResourcesTest.java From roboconf-platform with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] config() throws Exception { File appDirectory = TestUtils.findApplicationDirectory( "simple" ); String appLocation = appDirectory.getAbsolutePath(); return OptionUtils.combine( super.config(), systemProperty( APP_LOCATION ).value( appLocation )); }
Example #18
Source File: BulkActionsTest.java From roboconf-platform with Apache License 2.0 | 5 votes |
@Override @Configuration public Option[] config() throws Exception { File resourcesDirectory = TestUtils.findApplicationDirectory( "simple" ); String appLocation = resourcesDirectory.getAbsolutePath(); return OptionUtils.combine( super.config(), systemProperty( APP_LOCATION ).value( appLocation )); }
Example #19
Source File: Common.java From fuchsia with Apache License 2.0 | 5 votes |
public Option[] defaultConfiguration() throws IOException { Option[] options = super.defaultConfiguration(); options = OptionUtils.combine(options, fuchsiaBundles()); options = OptionUtils.combine(options, log()); if (deployAssertj()) { options = OptionUtils.combine(options, assertjBundles()); } return options; }
Example #20
Source File: BasicSTSIntegrationTest.java From cxf with Apache License 2.0 | 4 votes |
@Configuration public Option[] getConfig() { final String port = TestUtil.getPortNumber(BasicSTSIntegrationTest.class); final String localRepository = System.getProperty("maven.repo.local", ""); final Option[] basicOptions = new Option[] { karafDistributionConfiguration() .frameworkUrl(maven("org.apache.karaf", "apache-karaf-minimal").versionAsInProject().type("tar.gz")) .unpackDirectory(new File("target/paxexam/")) .useDeployFolder(false), configureConsole().ignoreLocalConsole().ignoreRemoteShell(), systemProperty("java.awt.headless").value("true"), systemProperty("BasicSTSIntegrationTest.PORT").value(port), editConfigurationFilePut("etc/org.ops4j.pax.web.cfg", "org.osgi.service.http.port", port), when(!localRepository.isEmpty()) .useOptions(systemProperty("org.ops4j.pax.url.mvn.localRepository").value(localRepository)), //DO NOT COMMIT WITH THIS LINE ENABLED!!! //KarafDistributionOption.keepRuntimeFolder(), //KarafDistributionOption.debugConfiguration(), // nor this //KarafDistributionOption.logLevel(LogLevelOption.LogLevel.INFO), features( maven("org.apache.cxf.karaf", "apache-cxf").versionAsInProject().type("xml").classifier("features"), "aries-blueprint", "cxf-jaxws", "cxf-sts"), mavenBundle("org.apache.cxf.services.sts.systests", "cxf-services-sts-systests-osgi").versionAsInProject(), copy("clientKeystore.properties"), copy("clientstore.jks") }; if (JavaVersionUtil.getMajorVersion() >= 9) { final String karafVersion = MavenUtils.getArtifactVersion("org.apache.karaf", "apache-karaf-minimal"); return OptionUtils.combine(basicOptions, new VMOption("--add-reads=java.xml=java.logging"), new VMOption("--add-exports=java.base/" + "org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED"), new VMOption("--patch-module"), new VMOption("java.base=lib/endorsed/org.apache.karaf.specs.locator-" + karafVersion + ".jar"), new VMOption("--patch-module"), new VMOption("java.xml=lib/endorsed/org.apache.karaf.specs.java.xml-" + karafVersion + ".jar"), new VMOption("--add-opens"), new VMOption("java.base/java.security=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.base/java.net=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.base/java.lang=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.base/java.util=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.naming/javax.naming.spi=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED"), new VMOption("--add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED"), new VMOption("--add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED"), new VMOption("--add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED"), new VMOption("--add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED"), new VMOption("-classpath"), new VMOption("lib/jdk9plus/*" + File.pathSeparator + "lib/boot/*") ); } return basicOptions; }
Example #21
Source File: OSGiTestEnvironment.java From camunda-bpm-platform-osgi with Apache License 2.0 | 4 votes |
@Override public Option[] createConfiguration() { Option[] camundaBundles = options( // camunda core mavenBundle("org.camunda.bpm", "camunda-engine").versionAsInProject(), mavenBundle("org.camunda.bpm.dmn", "camunda-engine-feel-api").versionAsInProject(), mavenBundle("org.camunda.bpm.dmn", "camunda-engine-feel-juel").versionAsInProject(), mavenBundle("org.camunda.bpm.dmn", "camunda-engine-dmn").versionAsInProject(), mavenBundle("org.camunda.bpm.model", "camunda-bpmn-model").versionAsInProject(), mavenBundle("org.camunda.bpm.model", "camunda-cmmn-model").versionAsInProject(), mavenBundle("org.camunda.bpm.model", "camunda-xml-model").versionAsInProject(), mavenBundle("org.camunda.bpm.model", "camunda-dmn-model").versionAsInProject(), mavenBundle("org.camunda.commons", "camunda-commons-typed-values").versionAsInProject(), mavenBundle("org.camunda.commons", "camunda-commons-logging").versionAsInProject(), mavenBundle("org.camunda.commons", "camunda-commons-utils").versionAsInProject(), // camunda core dependencies mavenBundle("joda-time", "joda-time").versionAsInProject(), mavenBundle("com.h2database", "h2").versionAsInProject(), mavenBundle("org.mybatis", "mybatis").versionAsInProject(), mavenBundle("com.fasterxml.uuid", "java-uuid-generator").versionAsInProject(), mavenBundle("de.odysseus.juel", "juel-api").versionAsInProject(), mavenBundle("de.odysseus.juel", "juel-impl").versionAsInProject(), mavenBundle("org.slf4j", "slf4j-api", "1.7.7"), mavenBundle("ch.qos.logback", "logback-core", "1.1.2"), mavenBundle("ch.qos.logback", "logback-classic", "1.1.2"), mavenBundle("com.sun.activation", "javax.activation", "1.2.0"), //camunda osgi mavenBundle("org.camunda.bpm.extension.osgi", "camunda-bpm-osgi").versionAsInProject(), //camunda osgi dependencies mavenBundle("org.apache.felix", "org.apache.felix.dependencymanager").versionAsInProject(), // make sure compiled classes from src/main are included bundle("reference:file:target/classes")); return OptionUtils.combine( camundaBundles, CoreOptions.junitBundles(), //for the logging systemProperty("logback.configurationFile") .value("file:" + PathUtils.getBaseDir() + "/src/test/resources/logback-test.xml") ); }
Example #22
Source File: ScriptEngineBundleTrackerCustomizerIntegrationTest.java From camunda-bpm-platform-osgi with Apache License 2.0 | 4 votes |
@Configuration @Override public Option[] createConfiguration() { return OptionUtils.combine(super.createConfiguration(), CoreOptions.provision(createTestBundle())); }
Example #23
Source File: BasicIntegrationTest.java From cxf with Apache License 2.0 | 4 votes |
@Configuration public Option[] getConfig() { String port = TestUtil.getPortNumber(BasicIntegrationTest.class); System.setProperty("BasicIntegrationTest.PORT", port); String xkmsEndpoint = "http://localhost:" + port + "/cxf/XKMS"; String localRepository = System.getProperty("localRepository"); MavenArtifactUrlReference xkmsFeatures = maven() // .groupId("org.apache.cxf.services.xkms") // .artifactId("cxf-services-xkms-features") // .versionAsInProject() // .type("xml"); final Option[] basicOptions = new Option[] { karafDistributionConfiguration() .frameworkUrl( maven().groupId("org.apache.karaf").artifactId("apache-karaf-minimal").versionAsInProject() .type("tar.gz")) .unpackDirectory(new File("target/paxexam/")) .useDeployFolder(false), systemProperty("java.awt.headless").value("true"), systemProperty("BasicIntegrationTest.PORT").value(port), copy("data/xkms/certificates/trusted_cas/root.cer"), copy("data/xkms/certificates/trusted_cas/wss40CA.cer"), copy("data/xkms/certificates/cas/alice.cer"), copy("data/xkms/certificates/dave.cer"), copy("data/xkms/certificates/http___localhost_8080_services_TestService.cer"), // editConfigurationFilePut("etc/org.ops4j.pax.url.mvn.cfg", // "org.ops4j.pax.url.mvn.repositories", REPOS), editConfigurationFilePut("etc/org.ops4j.pax.web.cfg", "org.osgi.service.http.port", port), editConfigurationFilePut("etc/org.apache.cxf.xkms.client.cfg", "xkms.endpoint", xkmsEndpoint), when(localRepository != null) .useOptions(editConfigurationFilePut("etc/org.ops4j.pax.url.mvn.cfg", "org.ops4j.pax.url.mvn.localRepository", localRepository)), features(xkmsFeatures, "cxf-xkms-service", "cxf-xkms-client", "cxf-xkms-ldap"), configureConsole().ignoreLocalConsole().ignoreRemoteShell(), // org.ops4j.pax.exam.karaf.options.KarafDistributionOption.keepRuntimeFolder(), // CoreOptions.vmOption("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005") }; if (JavaVersionUtil.getMajorVersion() >= 9) { final String karafVersion = MavenUtils.getArtifactVersion("org.apache.karaf", "apache-karaf-minimal"); return OptionUtils.combine(basicOptions, new VMOption("--add-reads=java.xml=java.logging"), new VMOption("--add-exports=java.base/" + "org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED"), new VMOption("--patch-module"), new VMOption("java.base=lib/endorsed/org.apache.karaf.specs.locator-" + karafVersion + ".jar"), new VMOption("--patch-module"), new VMOption("java.xml=lib/endorsed/org.apache.karaf.specs.java.xml-" + karafVersion + ".jar"), new VMOption("--add-opens"), new VMOption("java.base/java.security=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.base/java.net=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.base/java.lang=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.base/java.util=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.naming/javax.naming.spi=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED"), new VMOption("--add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED"), new VMOption("--add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED"), new VMOption("--add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED"), new VMOption("--add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED"), new VMOption("-classpath"), new VMOption("lib/jdk9plus/*" + File.pathSeparator + "lib/boot/*") ); } return basicOptions; }
Example #24
Source File: NoAriesBlueprintTest.java From cxf with Apache License 2.0 | 4 votes |
@Configuration public Option[] config() { String localRepo = System.getProperty("localRepository"); if (localRepo == null) { localRepo = ""; } final Option[] basicOptions = new Option[] { systemProperty("java.awt.headless").value("true"), when(!"".equals(localRepo)) .useOptions(systemProperty("org.ops4j.pax.url.mvn.localRepository").value(localRepo)), mavenBundle("org.apache.ws.xmlschema", "xmlschema-core").versionAsInProject(), mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.wsdl4j").versionAsInProject(), mavenBundle("org.apache.felix", "org.apache.felix.configadmin").versionAsInProject(), mavenBundle("org.apache.cxf", "cxf-core").versionAsInProject(), mavenBundle("org.apache.cxf", "cxf-rt-wsdl").versionAsInProject(), mavenBundle("org.apache.cxf", "cxf-rt-databinding-jaxb").versionAsInProject(), mavenBundle("org.apache.cxf", "cxf-rt-bindings-xml").versionAsInProject(), mavenBundle("org.apache.cxf", "cxf-rt-bindings-soap").versionAsInProject(), mavenBundle("org.apache.cxf", "cxf-rt-frontend-simple").versionAsInProject(), mavenBundle("jakarta.servlet", "jakarta.servlet-api").versionAsInProject(), mavenBundle("org.apache.cxf", "cxf-rt-transports-http").versionAsInProject(), mavenBundle("org.apache.cxf", "cxf-rt-frontend-jaxws").versionAsInProject(), junitBundles(), systemPackages( "javax.annotation;version=\"1.3\"", "javax.xml.soap;version=\"1.5\"" ) }; if (JavaUtils.isJava9Compatible()) { return OptionUtils.combine(basicOptions, mavenBundle("jakarta.annotation", "jakarta.annotation-api").versionAsInProject(), mavenBundle("com.sun.activation", "jakarta.activation").versionAsInProject(), mavenBundle("jakarta.xml.ws", "jakarta.xml.ws-api").versionAsInProject(), mavenBundle("jakarta.xml.bind", "jakarta.xml.bind-api").versionAsInProject(), mavenBundle("jakarta.xml.soap", "jakarta.xml.soap-api").versionAsInProject(), mavenBundle("jakarta.jws", "jakarta.jws-api").versionAsInProject() ); } return basicOptions; }
Example #25
Source File: CXFOSGiTestSupport.java From cxf with Apache License 2.0 | 4 votes |
/** * Create an {@link org.ops4j.pax.exam.Option} for using a . * * @return */ protected Option[] cxfBaseConfig() { cxfUrl = maven().groupId("org.apache.cxf.karaf").artifactId("apache-cxf").versionAsInProject() .type("xml").classifier("features"); String localRepo = System.getProperty("localRepository"); Object urp = System.getProperty("cxf.useRandomFirstPort"); final Option[] basicOptions = new Option[] { karafDistributionConfiguration() .frameworkUrl( maven().groupId("org.apache.karaf").artifactId("apache-karaf-minimal").versionAsInProject() .type("tar.gz")) .useDeployFolder(false) .unpackDirectory(new File("target/paxexam/")), //DO NOT COMMIT WITH THIS LINE ENABLED!!! //KarafDistributionOption.keepRuntimeFolder(), //debugConfiguration(), // nor this systemProperty("pax.exam.osgi.unresolved.fail").value("true"), systemProperty("java.awt.headless").value("true"), // editConfigurationFilePut("etc/org.ops4j.pax.url.mvn.cfg", // "org.ops4j.pax.url.mvn.repositories", REPOS), configureConsole().ignoreLocalConsole().ignoreRemoteShell(), when(localRepo != null) .useOptions(editConfigurationFilePut("etc/org.ops4j.pax.url.mvn.cfg", "org.ops4j.pax.url.mvn.localRepository", localRepo)), when(urp != null).useOptions(systemProperty("cxf.useRandomFirstPort").value("true")) }; if (JavaVersionUtil.getMajorVersion() >= 9) { final String karafVersion = MavenUtils.getArtifactVersion("org.apache.karaf", "apache-karaf-minimal"); return OptionUtils.combine(basicOptions, new VMOption("--add-reads=java.xml=java.logging"), new VMOption("--add-exports=java.base/" + "org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED"), new VMOption("--patch-module"), new VMOption("java.base=lib/endorsed/org.apache.karaf.specs.locator-" + karafVersion + ".jar"), new VMOption("--patch-module"), new VMOption("java.xml=lib/endorsed/org.apache.karaf.specs.java.xml-" + karafVersion + ".jar"), new VMOption("--add-opens"), new VMOption("java.base/java.security=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.base/java.net=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.base/java.lang=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.base/java.util=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.naming/javax.naming.spi=ALL-UNNAMED"), new VMOption("--add-opens"), new VMOption("java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED"), new VMOption("--add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED"), new VMOption("--add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED"), new VMOption("--add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED"), new VMOption("--add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED"), new VMOption("-classpath"), new VMOption("lib/jdk9plus/*" + File.pathSeparator + "lib/boot/*") ); } return basicOptions; }
Example #26
Source File: BlueprintBasicTest.java From flowable-engine with Apache License 2.0 | 4 votes |
@Configuration public Option[] createConfiguration() { Option[] coreBundles = options( mavenBundle().groupId("org.flowable").artifactId("flowable-bpmn-model").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-engine-common-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-engine-common").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-bpmn-converter").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-process-validation").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-image-generator").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-form-model").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-form-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-dmn-model").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-dmn-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-idm-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-idm-engine").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-idm-engine-configurator").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-event-registry-model").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-event-registry-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-event-registry-json-converter").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-event-registry").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-event-registry-configurator").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-content-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-variable-service-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-variable-service").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-identitylink-service-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-identitylink-service").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-entitylink-service-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-entitylink-service").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-eventsubscription-service-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-eventsubscription-service").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-task-service-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-task-service").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-job-service-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-job-service").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-batch-service").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-batch-service-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-cmmn-model").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-cmmn-api").versionAsInProject(), mavenBundle().groupId("org.flowable").artifactId("flowable-engine").versionAsInProject(), mavenBundle().groupId("org.apache.commons").artifactId("commons-lang3").versionAsInProject(), mavenBundle().groupId("commons-io").artifactId("commons-io").versionAsInProject(), mavenBundle().groupId("com.fasterxml.uuid").artifactId("java-uuid-generator").versionAsInProject(), mavenBundle().groupId("com.fasterxml.jackson.core").artifactId("jackson-core").versionAsInProject(), mavenBundle().groupId("com.fasterxml.jackson.core").artifactId("jackson-databind").versionAsInProject(), mavenBundle().groupId("com.fasterxml.jackson.core").artifactId("jackson-annotations").versionAsInProject(), mavenBundle().groupId("joda-time").artifactId("joda-time").versionAsInProject(), mavenBundle().groupId("com.h2database").artifactId("h2").versionAsInProject(), mavenBundle().groupId("org.mybatis").artifactId("mybatis").versionAsInProject(), mavenBundle().groupId("org.liquibase").artifactId("liquibase-core").versionAsInProject(), mavenBundle().groupId("org.yaml").artifactId("snakeyaml").versionAsInProject(), mavenBundle().groupId("org.slf4j").artifactId("slf4j-log4j12").versionAsInProject().noStart(), mavenBundle().groupId("org.junit.jupiter").artifactId("junit-jupiter-api").versionAsInProject(), mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.fileinstall").versionAsInProject(), mavenBundle().groupId("org.apache.aries.blueprint").artifactId("org.apache.aries.blueprint.core").versionAsInProject(), mavenBundle().groupId("org.apache.aries.proxy").artifactId("org.apache.aries.proxy").versionAsInProject(), mavenBundle().groupId("org.apache.aries").artifactId("org.apache.aries.util").versionAsInProject(), mavenBundle().groupId("org.osgi").artifactId("org.osgi.enterprise").versionAsInProject(), bundle("reference:file:target/classes")); Option[] optionArray = OptionUtils.combine(coreBundles, CoreOptions.junitBundles(), provision(createTestBundleWithProcessEngineConfiguration(), createTestBundleWithProcessDefinition(), createTestBundleWithTask())); return optionArray; }