Package org.ops4j.pax.exam

Examples of org.ops4j.pax.exam.Customizer


                        mavenBundle("org.apache.felix", "org.apache.felix.configadmin"),
                        mavenBundle("org.ops4j.pax.logging", "pax-logging-api"),
                        mavenBundle("org.ops4j.pax.logging", "pax-logging-service"),
                        mavenBundle("org.osgi", "org.osgi.compendium"),
                        mavenBundle("org.apache.aries.jmx", "org.apache.aries.jmx"),
                        new Customizer() {
                            public InputStream customizeTestProbe(InputStream testProbe) throws Exception {
                                return modifyBundle(testProbe)
                                           .removeHeader(Constants.DYNAMICIMPORT_PACKAGE)
                                           .set(Constants.REQUIRE_BUNDLE, "org.apache.aries.jmx.test.bundlea,org.apache.aries.jmx.test.bundleb")
                                           .build(withBnd());
View Full Code Here


                        mavenBundle("org.apache.felix", "org.apache.felix.configadmin"),
                        mavenBundle("org.ops4j.pax.logging", "pax-logging-api"),
                        mavenBundle("org.ops4j.pax.logging", "pax-logging-service"),
                        mavenBundle("org.osgi", "org.osgi.compendium"),
                        mavenBundle("org.apache.aries.jmx", "org.apache.aries.jmx"),
                        new Customizer() {
                            public InputStream customizeTestProbe(InputStream testProbe) throws Exception {
                                return modifyBundle(testProbe)
                                           .removeHeader(Constants.DYNAMICIMPORT_PACKAGE)
                                           .set(Constants.REQUIRE_BUNDLE, "org.apache.aries.jmx.test.bundlea,org.apache.aries.jmx.test.bundleb")
                                           .build(withBnd());
View Full Code Here


    @Configuration
    public Option[] configure()
    {
        return combine( getDynamicMemoryOptions(), new Customizer()
        {
            @Override
            public InputStream customizeTestProbe( InputStream testProbe )
            {
                return modifyBundle( testProbe ).add( SimpleObject.class ).set( Constants.DYNAMICIMPORT_PACKAGE,
View Full Code Here

    return options.toArray(new Option[options.size()]);
  }

  @Configuration
  public Option[] configure() {
    return combine(getDynamicMemoryEhCacheOptions(), new Customizer() {
      @Override
      public InputStream customizeTestProbe(InputStream testProbe) {
        return modifyBundle(testProbe)
                .add(SimpleObject.class)
                .add("/ehcache.xml", EhCacheTest.class.getResource("/ehcache.xml"))
View Full Code Here

                            Constants.BUNDLE_SYMBOLICNAME,
                            "org.apache.directmemory.tests.osgi.cacheservice.exporter" ).set( Constants.BUNDLE_VERSION,
                                                                                              "1.0.0" ).set(
                            Constants.DYNAMICIMPORT_PACKAGE, "*" ).build() ).start(),

                        new Customizer()
                        {
                            @Override
                            public InputStream customizeTestProbe( InputStream testProbe )
                            {
                                return modifyBundle( testProbe ).set( Constants.DYNAMICIMPORT_PACKAGE, "*" ).build();
View Full Code Here

                            .set(Constants.BUNDLE_SYMBOLICNAME,"MyComponent")
                            .set(Constants.IMPORT_PACKAGE, "org.apache.felix.ipojo.tests.core.service")
                            .set("Ipojo-log-level", "info")
                            .build( withiPOJO(new File(tmp, "provider-with-level-in-manifest.jar"), new File("component.xml")))
                            ),
                new Customizer() {
                    @Override
                    public InputStream customizeTestProbe( InputStream testProbe )
                    {
                       return TinyBundles.modifyBundle(testProbe)
                           .set(Constants.IMPORT_PACKAGE, "org.apache.felix.ipojo.tests.core.service")
View Full Code Here

           systemProperty( "providerWithMetadataInMetaInf" ).value( providerWithMetadataInMetaInf ),
           systemProperty( "providerWithoutMetadata" ).value( providerWithoutMetadata ),
           systemProperty( "consumerWithMetadata").value(consumerWithMetadata),
           systemProperty( "consumerWithoutMetadata").value(consumerWithoutMetadata),

           new Customizer() {
                   @Override
                     public InputStream customizeTestProbe( InputStream testProbe )
                     {
                         return TinyBundles.modifyBundle(testProbe).set(Constants.IMPORT_PACKAGE,
                             "org.apache.felix.ipojo.online.manipulator.test.service")
View Full Code Here

                        mavenBundle("org.ops4j.pax.logging", "pax-logging-api"),
                        mavenBundle("org.ops4j.pax.logging", "pax-logging-service"),
                        mavenBundle("org.osgi", "org.osgi.compendium"),
                        mavenBundle("org.apache.aries.jmx", "org.apache.aries.jmx"),
                        mavenBundle("org.apache.aries", "org.apache.aries.util"),
                        new Customizer() {
                            public InputStream customizeTestProbe(InputStream testProbe) throws Exception {
                                return modifyBundle(testProbe)
                                           .removeHeader(Constants.DYNAMICIMPORT_PACKAGE)
                                           .set(Constants.REQUIRE_BUNDLE, "org.apache.aries.jmx.test.bundlea,org.apache.aries.jmx.test.bundleb")
                                           .build(withBnd());
View Full Code Here


    @Configuration
    public Option[] configure()
    {
        return combine( getDynamicMemoryOptions(), new Customizer()
        {
            @Override
            public InputStream customizeTestProbe( InputStream testProbe )
            {
                return modifyBundle( testProbe ).add( SimpleObject.class ).set( Constants.DYNAMICIMPORT_PACKAGE,
View Full Code Here

                            Constants.BUNDLE_SYMBOLICNAME,
                            "org.apache.directmemory.tests.osgi.cacheservice.exporter" ).set( Constants.BUNDLE_VERSION,
                                                                                              "1.0.0" ).set(
                            Constants.DYNAMICIMPORT_PACKAGE, "*" ).build() ).start(),

                        new Customizer()
                        {
                            @Override
                            public InputStream customizeTestProbe( InputStream testProbe )
                            {
                                return modifyBundle( testProbe ).set( Constants.DYNAMICIMPORT_PACKAGE, "*" ).build();
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.Customizer

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.