public static WrappedUrlProvisionOption wrappedGradleBundle(String module) { return wrappedBundle(artifact(module).toUri().toString()); }
options.add(wrappedBundle(maven("org.ops4j.pax.exam", "pax-exam-container-default"))); options.add(wrappedBundle(maven("org.ops4j.pax.exam", "pax-exam-junit")));
options.add(wrappedBundle(mavenBundle("org.ops4j.pax.exam", "pax-exam-container-default"))); options.add(wrappedBundle(maven("org.ops4j.pax.exam", "pax-exam-junit")));
/** * Top level option combinator that adds platform fixes as needed * @param params * @return */ public static Option[] testOptions(Object ... params) { // We need to add pax-exam-junit here when running with the ibm // jdk to avoid the following exception during the test run: // ClassNotFoundException: org.ops4j.pax.exam.junit.Configuration // We also need to pass through local repository properties return combine(flatOptions(params), when(System.getProperty("maven.repo.local") != null).useOptions(vmOption("-Dorg.ops4j.pax.url.mvn.localRepository=" + System.getProperty("maven.repo.local"))), when(System.getProperty("org.ops4j.pax.url.mvn.localRepository") != null).useOptions(vmOption("-Dorg.ops4j.pax.url.mvn.localRepository=" + System.getProperty("org.ops4j.pax.url.mvn.localRepository"))), when("IBM Corporation".equals(System.getProperty("java.vendor"))) .useOptions(wrappedBundle(mavenBundle("org.ops4j.pax.exam", "pax-exam-junit"))), mavenBundle("org.apache.aries.testsupport", "org.apache.aries.testsupport.unit") ); }
/** * Constructor. */ public MockitoBundlesOption() { super( wrappedBundle( maven() .groupId( "org.mockito" ) .artifactId( "mockito-all" ) .version( "1.7" ) ) ); noUpdate(); startLevel( START_LEVEL_SYSTEM_BUNDLES ); }
osgiVersion += segment; url = wrappedBundle(bundle) .bundleSymbolicName("org.daisy.xprocspec") .bundleVersion(osgiVersion)
/** * You'll get a wrapped artifact of jmock version 2.5.1 by default. */ public JMockBundlesOption() { super( wrappedBundle( maven() .groupId( "org.jmock" ) .artifactId( "jmock" ) .version( "2.5.1" ) ) ); noUpdate(); startLevel( START_LEVEL_SYSTEM_BUNDLES ); }
wrappedBundle(maven("org.hamcrest", "hamcrest-library").versionAsInProject()) // .instructions("Fragment-Host=org.ops4j.pax.tipi.hamcrest.core"),