Package org.ops4j.pax.exam.options

Examples of org.ops4j.pax.exam.options.DefaultCompositeOption


    return osgiConfig;

  }

  protected CompositeOption packPax() {
    CompositeOption paxConfig = new DefaultCompositeOption(mavenBundle()
        .groupId("org.ops4j.pax.url").artifactId("pax-url-mvn")
        .versionAsInProject());
    return paxConfig;
  }
View Full Code Here


    BundleContext context;
    OSGiHelper osgiHelper;
    IPOJOHelper ipojoHelper;

    public static Option junitAndMockitoBundles() {
        return new DefaultCompositeOption(
                // Repository required to load harmcrest (OSGi-fied version).
                repository("http://repository.springsource.com/maven/bundles/external").id(
                        "com.springsource.repository.bundles.external"),

                // Hamcrest with a version matching the range expected by Mockito
View Full Code Here

                frameworkProperty("felix.bootdelegation.implicit").value("false")
        );
    }

    public static CompositeOption ipojoBundles() {
        return new DefaultCompositeOption(
                mavenBundle("org.apache.felix", "org.apache.felix.ipojo").versionAsInProject(),
                mavenBundle("org.ow2.chameleon.testing", "osgi-helpers").versionAsInProject(),
                // The tested handler
                mavenBundle("org.apache.felix", "org.apache.felix.ipojo.handler.transaction").versionAsInProject()
        );
View Full Code Here

                "org.apache.felix.ipojo.runtime.core.test.components.inner"
        );
    }

    public CompositeOption eventadmin() {
        return new DefaultCompositeOption(
                // Use an old version of the event admin to avoid import package issues on KF
                mavenBundle("org.apache.felix", "org.apache.felix.eventadmin", "1.2.10"),
                mavenBundle("org.apache.felix", "org.apache.felix.ipojo.handler.eventadmin",
                        "1.8.0").versionAsInProject());
    }
View Full Code Here

                .build(withBnd());
    }

    protected Option addExtraOptions()
    {
        return new DefaultCompositeOption();
    }
View Full Code Here

    private String getConfigDir(){
        return new File(new File("src", "test"), "config").getAbsolutePath();
    }

    private Option jarBundles() throws MalformedURLException {
        DefaultCompositeOption composite = new DefaultCompositeOption();
        for (File bundle : new File("target", "test-bundles").listFiles()) {
            if (bundle.getName().endsWith(".jar") && bundle.isFile()) {
                composite.add(bundle(bundle.toURI().toURL().toString()));
            }
        }
        return composite;
    }
View Full Code Here

                systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value("WARN")
        );
    }

    public static Option junitAndMockitoBundles() {
        return new DefaultCompositeOption(
                // Repository required to load harmcrest (OSGi-fied version).
                repository("http://repository.springsource.com/maven/bundles/external").id(
                        "com.springsource.repository.bundles.external"),

                // Hamcrest with a version matching the range expected by Mockito
View Full Code Here

        ipojoHelper.dispose();
        osgiHelper.dispose();
    }

    public static CompositeOption ipojoBundles() {
        return new DefaultCompositeOption(
                mavenBundle("org.apache.felix", "org.apache.felix.ipojo").versionAsInProject(),
                mavenBundle("org.ow2.chameleon.testing", "osgi-helpers").versionAsInProject(),
                // The tested handler
                mavenBundle("org.apache.felix", "org.apache.felix.ipojo.handler.whiteboard").versionAsInProject()
        );
View Full Code Here

                "org.apache.felix.ipojo.runtime.core.test.components.inner"
        );
    }

    public CompositeOption eventadmin() {
        return new DefaultCompositeOption(
                // Use an old version of the event admin to avoid import package issues on KF
                mavenBundle("org.apache.felix", "org.apache.felix.eventadmin", "1.2.10"),
                mavenBundle("org.apache.felix", "org.apache.felix.ipojo.handler.eventadmin",
                        "1.8.0").versionAsInProject());
    }
View Full Code Here

                festAssertAsInProject()
        };
    }

    public CompositeOption eventadmin() {
        return new DefaultCompositeOption(
                mavenBundle("org.apache.felix", "org.apache.felix.eventadmin", "1.2.10"),
                mavenBundle("org.apache.felix", "org.apache.felix.ipojo.handler.eventadmin").versionAsInProject());
    }
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.options.DefaultCompositeOption

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.