• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Configuration类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.ops4j.pax.exam.junit.Configuration的典型用法代码示例。如果您正苦于以下问题:Java Configuration类的具体用法?Java Configuration怎么用?Java Configuration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Configuration类属于org.ops4j.pax.exam.junit包,在下文中一共展示了Configuration类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public static Option[] config() {
	// @formatter:off
	return options(
			unoDefaultConfiguration(), 
			unoDerbyInMemoryConfiguration(), 
			junitBundles(), 
			wfBundles(),
			jbpmIntegrationBundles(), 
			mavenBundle("org.ops4j.pax.tinybundles", "tinybundles").versionAsInProject(),
			mavenBundle("biz.aQute.bnd", "bndlib").versionAsInProject(),
			bundle("reference:file:" + PathUtils.getBaseDir() + "/target/classes").startLevel(4), 
			weaverVerbose(),
			systemTimeout(1000 * 60 * 15)
	);
	// @formatter:on
}
 
开发者ID:frincon,项目名称:openeos,代码行数:18,代码来源:JbpmSyncronizerTestCase.java


示例2: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] config() {
    InputStream inp = bundle()
        .add(MockNCSComponentRepository.class)
        .add(MockNCSCompontentRepositoryActivator.class)
        .set(Constants.BUNDLE_SYMBOLICNAME, "Mock NCS Component Repository")
        .set(Constants.IMPORT_PACKAGE, "org.osgi.framework,org.opennms.netmgt.model.ncs")
        .set(Constants.BUNDLE_ACTIVATOR, MockNCSCompontentRepositoryActivator.class.getName())
        .build();

    return options(
        karafDistributionConfiguration().frameworkUrl(maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("2.2.7")).karafVersion("2.2.7").name("Apache Karaf").unpackDirectory(new File("target/exam")),
        bootClasspathLibrary(maven().groupId("org.opennms.features.ncs").artifactId("ncs-model").versionAsInProject()),
        systemPackages(
            "org.opennms.netmgt.model.ncs;version=1.11.5"
        ),
        bundle("reference:file:" + PathUtils.getBaseDir() + "/target/classes/"),
        provision(inp),
        junitBundles(),
        keepRuntimeFolder()
    );
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:23,代码来源:HelloWorldTest.java


示例3: configuration

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] configuration() throws Exception {
    String projectVersion = MavenUtils.asInProject().getVersion("org.apache.provisionr", "provisionr-assembly");

    Properties testProperties = new Properties();
    testProperties.load(Resources.getResource(CustomKarafDistributionTest.class, "maven.properties").openStream());

    File customDistribution = new File(testProperties.getProperty("module.root"),
            "../assembly/target/provisionr-" + projectVersion + ".tar.gz");

    return new Option[]{
        karafDistributionConfiguration()
            .frameworkUrl(customDistribution.toURI().toString())
            .karafVersion(getKarafVersionAsInProject())
            .name("Apache Provisionr")
            .unpackDirectory(new File("target/exam")),
        keepRuntimeFolder(),
        junitBundles(),
        logLevel(LogLevelOption.LogLevel.INFO)
    };
}
 
开发者ID:apache,项目名称:incubator-provisionr,代码行数:22,代码来源:CustomKarafDistributionTest.java


示例4: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] config() {

    return new Option[] {
            // pick the distribution to use; and configure it to be kept
            caGridDistributionConfiguration(),
            keepRuntimeFolder(),
            logLevel(LogLevelOption.LogLevel.INFO),
            // pass in the versions to use for features
            // systemProperty(WSRF_FEATURE_VERSION_PROPERTY, MavenUtils.getArtifactVersion("org.cagrid.wsrf", "wsrf-draft-features")),
            systemProperty(CAGRID_FEATURE_VERSION_PROPERTY, MavenUtils.getArtifactVersion("org.cagrid", "cagrid-features")),
            // Pass local/private maven locations into the forked JVMs (this is needed if you use jenkins with a per-build maven repo)
            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"))),
    };
}
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:19,代码来源:CaGridTestSupport.java


示例5: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Override
@Configuration
public Option[] config() {
    Option[] options = new Option[] {
            // Install GME feature
            new KarafDistributionConfigurationFileExtendOption("etc/org.apache.karaf.features.cfg", "featuresRepositories", "," + maven().groupId("org.cagrid").artifactId("cagrid-features").versionAsInProject().classifier("features").type("xml").getURL()),
            new KarafDistributionConfigurationFileExtendOption("etc/org.apache.karaf.features.cfg", "featuresBoot", ",cagrid-index"),


            // seeing once in a while an spurious linkage error:
            // java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "javax/xml/soap/SOAPFault"
            // adding this to get some info:
            // System.err.println(executeCommand("packages:exports | grep javax.xml.soap"));
            // System.err.println(executeCommand("osgi:list"));
            // it seems there could be a conflict between the one included with the jre and the saaj feature in
            // servicemix, both jars have this class (javax.xml.soap.SOAPFault)
             new KarafDistributionConfigurationFileExtendOption("etc/jre.properties", "jre-1.6", ",javax.xml.soap;version=\"1.3\"")
            , new KarafDistributionConfigurationFileExtendOption("etc/jre.properties", "jre-1.7", ",javax.xml.soap;version=\"1.3\"")
    };
    return CaGridTestSupport.concatAll(super.config(), options);
}
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:22,代码来源:IndexFunctionalTest.java


示例6: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] config() {

    return new Option[] {
            // pick the distribution to use; and configure it to be kept
            caGridDistributionConfiguration(),
            keepRuntimeFolder(),
            logLevel(LogLevelOption.LogLevel.INFO),
            // pass in the versions to use for features
            // systemProperty(WSRF_FEATURE_VERSION_PROPERTY, MavenUtils.getArtifactVersion("org.cagrid.wsrf", "wsrf-draft-features")),
            systemProperty(CAGRID_FEATURE_VERSION_PROPERTY, MavenUtils.getArtifactVersion("org.cagrid", "cagrid-features")),
            // Pass local/private maven locations into the forked JVMs (this is needed if you use jenkins with a per-build maven repo)
            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"))),
            // servicemix defaults to using the felix osgi kernal which has some bugs when dealing with complex feature/bundle dependencies, so let's use
            // equinox by default
            new KarafDistributionConfigurationFilePutOption("etc/config.properties", // config file to modify based on karaf.base
                    "karaf.framework", // key to add or change
                    "equinox") // value to add or change
            , new KarafDistributionConfigurationFileExtendOption("etc/org.apache.karaf.features.cfg", // config file to modify based on karaf.base
            "featuresBoot", // key to add or change
            ",spring-jdbc,spring-orm")
    };
}
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:27,代码来源:CaGridTestSupport.java


示例7: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Override
    @Configuration
    public Option[] config() {
        Option[] options = new Option[] {
                // need at least internet2 loaded so I can initialize the DB from the test (GrouperInit is part of the internet2 bunle)
                new KarafDistributionConfigurationFileExtendOption("etc/org.apache.karaf.features.cfg", "featuresRepositories", ","
                        + maven().groupId("org.cagrid").artifactId("cagrid-features").versionAsInProject().classifier("features").type("xml").getURL()),
                new KarafDistributionConfigurationFileExtendOption("etc/org.apache.karaf.features.cfg", "featuresBoot", ",cagrid-gridgrouper-internet2"),
                CoreOptions.mavenBundle("org.apache.ant", "com.springsource.org.apache.tools.ant", "1.7.0"),

                // Get our resource files to the "etc" area
                new KarafDistributionConfigurationFileReplacementOption("etc/cagrid.gridgrouper.wsrf.cfg", new File("src/test/resources/cagrid.gridgrouper.wsrf.cfg")),
//                new KarafDistributionConfigurationFileReplacementOption("etc/cagrid.gridgrouper.service.cfg", new File("src/test/resources/cagrid.gridgrouper.service.cfg")),
                new KarafDistributionConfigurationFileReplacementOption(HOST, new File("src/test/resources/grid-grouper-host.jks")),
                new KarafDistributionConfigurationFileReplacementOption("etc/cagrid-grid-grouper/legacy-grid-grouper-host.jks", new File("src/test/resources/legacy-grid-grouper-host.jks")),
                new KarafDistributionConfigurationFileReplacementOption(TRUSTSTORE, new File("src/test/resources/truststore.jks")),
                new KarafDistributionConfigurationFileReplacementOption(SERVICEMETADATA, new File("src/test/resources/serviceMetadata.xml")),
                new KarafDistributionConfigurationFileReplacementOption(SERVICESECURITYMETADATA, new File("src/test/resources/serviceSecurityMetadata.xml")),

                // work around smx vs jre soap conflict
                new KarafDistributionConfigurationFileExtendOption("etc/jre.properties", "jre-1.6", ",javax.xml.soap;version=\"1.3\""),
                new KarafDistributionConfigurationFileExtendOption("etc/jre.properties", "jre-1.7", ",javax.xml.soap;version=\"1.3\"")
        };
        return CaGridTestSupport.concatAll(super.config(), options);
    }
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:26,代码来源:GridGrouperTest.java


示例8: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] config() {

    return new Option[] {
            // pick the distribution to use; and configure it to be kept
            caGridDistributionConfiguration(),
            keepRuntimeFolder(),
            logLevel(LogLevelOption.LogLevel.INFO),
            // pass in the versions to use for features
            // systemProperty(WSRF_FEATURE_VERSION_PROPERTY, MavenUtils.getArtifactVersion("org.cagrid.wsrf", "wsrf-draft-features")),
            systemProperty(CAGRID_FEATURE_VERSION_PROPERTY, MavenUtils.getArtifactVersion("org.cagrid", "cagrid-features")),
            // Pass local/private maven locations into the forked JVMs (this is needed if you use jenkins with a per-build maven repo)
            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"))),
            // servicemix defaults to using the felix osgi kernal which has some bugs when dealing with complex feature/bundle dependencies, so let's use
            // equinox by default
            new KarafDistributionConfigurationFilePutOption("etc/config.properties", // config file to modify based on karaf.base
                    "karaf.framework", // key to add or change
                    "equinox") // value to add or change
    };
}
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:24,代码来源:CaGridTestSupport.java


示例9: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Override
@Configuration
public Option[] config() {
    Option[] options = new Option[] {
            // Make sure the GTS feature is installed before the test probe runs (the install process is actually tested by the GTSInstallTest test
            new KarafDistributionConfigurationFileExtendOption("etc/org.apache.karaf.features.cfg", "featuresRepositories", ","
                    + maven().groupId("org.cagrid").artifactId("cagrid-features").versionAsInProject().classifier("features").type("xml").getURL()),
            new KarafDistributionConfigurationFileExtendOption("etc/org.apache.karaf.features.cfg", "featuresBoot", ",servicemix-quartz"),
            //new KarafDistributionConfigurationFileExtendOption("etc/org.apache.karaf.features.cfg", "featuresBoot", ",cagrid-gts"),

            // Get our resource files to the "etc" area
            new KarafDistributionConfigurationFileReplacementOption("etc/cagrid.gts.wsrf.cfg", new File("src/test/resources/cagrid.gts.wsrf.cfg")),
            new KarafDistributionConfigurationFileReplacementOption("etc/cagrid.gts.service.cfg", new File("src/test/resources/cagrid.gts.service.cfg")),
            new KarafDistributionConfigurationFileReplacementOption(HOST, new File("src/test/resources/gts-host.jks")),
            new KarafDistributionConfigurationFileReplacementOption(TRUSTSTORE, new File("src/test/resources/truststore.jks"))
    // TODO: get a client keystore and a sha2 cert for new endpoint

    };

    return CaGridTestSupport.concatAll(super.config(), options);
}
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:22,代码来源:GTSFunctionalityTest.java


示例10: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] config() {
    return new Option[] {
            // pick the distribution to use; and configure it to be kept
            caGridDistributionConfiguration(),
            keepRuntimeFolder(),
            logLevel(LogLevelOption.LogLevel.INFO),
            // pass in the versions to use for features
            // systemProperty(WSRF_FEATURE_VERSION_PROPERTY, MavenUtils.getArtifactVersion("org.cagrid.wsrf", "wsrf-draft-features")),
            systemProperty(CAGRID_FEATURE_VERSION_PROPERTY, MavenUtils.getArtifactVersion("org.cagrid", "cagrid-features")),
            // Pass local/private maven locations into the forked JVMs (this is needed if you use jenkins with a per-build maven repo)
            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"))),
            // servicemix defaults to using the felix osgi kernal which has some bugs when dealing with complex feature/bundle dependencies, so let's use
            // equinox by default
            new KarafDistributionConfigurationFilePutOption("etc/config.properties", "karaf.framework", "equinox"),
            new KarafDistributionConfigurationFileExtendOption("etc/org.apache.karaf.features.cfg", "featuresBoot", ",spring-jdbc,spring-orm")
    // // http://fusesource.com/forums/thread.jspa?threadID=4016
    // Is this still necessary with SMX 4.5.2?
    // ,new KarafDistributionConfigurationFileExtendOption("etc/jre.properties", "jre-1.6", ",javax.xml.soap;version=\"1.3\""),
    // new KarafDistributionConfigurationFileExtendOption("etc/jre.properties", "jre-1.7", ",javax.xml.soap;version=\"1.3\"")
    };
}
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:26,代码来源:CaGridTestSupport.java


示例11: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] config() {
  return new Option[] {
      new DefaultCompositeOption(fabricDistributionConfiguration()),
      scanFeatures(getFabricFeatureUrl(), "scr", "mq-fabric"),
      mavenBundle("com.github.pires.example", "client").versionAsInProject() };
}
 
开发者ID:pires,项目名称:fabric8-amq-example,代码行数:8,代码来源:AMQClientTest.java


示例12: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public static Option[] config() {
	return options(unoDefaultConfiguration(), unoDerbyInMemoryConfiguration(), junitBundles(),
			mavenBundle("org.openeos", "org.openeos.numeration").version(getTestVersion()),
			mavenBundle("org.freemarker", "freemarker").versionAsInProject(),
			bundle("reference:file:" + PathUtils.getBaseDir() + "/target/classes/").startLevel(4));
}
 
开发者ID:frincon,项目名称:openeos,代码行数:8,代码来源:NumerationFreemarkerTestCase.java


示例13: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public static Option[] config() {
	// @formatter:off
	return options( 
			unoDefaultConfiguration(), 
			unoDerbyInMemoryConfiguration(), 
			junitBundles(), 
			wfDependencyBundles(),
			mavenBundle("org.ops4j.pax.tinybundles", "tinybundles").versionAsInProject(),
			mavenBundle("biz.aQute.bnd", "bndlib").versionAsInProject(), 
			weaverVerbose(),
			bundle("reference:file:" + PathUtils.getBaseDir() + "/target/classes").startLevel(4)
	); 
	// @formatter:on
}
 
开发者ID:frincon,项目名称:openeos,代码行数:16,代码来源:WorkflowExtenderTestCase.java


示例14: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public static Option[] config() {
	// @formatter:off
	return options(
			unoDefaultConfiguration(), 
			unoDerbyInMemoryConfiguration(), 
			junitBundles(), 
			wfDependencyBundles(),
			weaverVerbose(),
			mavenBundle("org.mockito", "mockito-all").versionAsInProject(),
			bundle("reference:file:" + PathUtils.getBaseDir() + "/target/classes").startLevel(4)
	);
	// @formatter:on
}
 
开发者ID:frincon,项目名称:openeos,代码行数:15,代码来源:WorkflowServiceTestCase.java


示例15: configuration

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public static Option[] configuration(){
    return options(equinox(), provision(
            mavenBundle().groupId("org.ops4j.pax.logging").artifactId("pax-logging-service"),
            mavenBundle().groupId("org.ops4j.pax.logging").artifactId("pax-logging-api"),
            mavenBundle().groupId("org.opennms.smslib").artifactId("smslib").version("3.4.3-SNAPSHOT"),
            mavenBundle().groupId("commons-net").artifactId("commons-net"),
            mavenBundle().groupId("org.rxtx").artifactId("rxtx-osgi").version("2.2-pre2")
    ));
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:11,代码来源:SmsLibTest.java


示例16: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
/**
 * Gets the Pax Exam configuration for the OSGi tests.
 * @return the Pax Exam configuration to run the tests
 */
@Configuration
public Option[] config() {
    return options(
            systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value("NONE"),
            systemProperty("logback.configurationFile").value("file:" + PathUtils.getBaseDir() + "/src/test/resources/logback.groovy"),
            // copy most options from PaxExamRuntime.defaultTestSystemOptions(),
            // except RBC and Pax Logging
            bootDelegationPackage( "sun.*" ),
            frameworkStartLevel( Constants.START_LEVEL_TEST_BUNDLE ),
            url( "link:classpath:META-INF/links/org.ops4j.pax.exam.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            url( "link:classpath:META-INF/links/org.ops4j.pax.exam.inject.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            url( "link:classpath:META-INF/links/org.ops4j.pax.extender.service.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            url( "link:classpath:META-INF/links/org.osgi.compendium.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            url( "link:classpath:META-INF/links/org.ops4j.base.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            url( "link:classpath:META-INF/links/org.ops4j.pax.swissbox.core.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            url( "link:classpath:META-INF/links/org.ops4j.pax.swissbox.extender.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            url( "link:classpath:META-INF/links/org.ops4j.pax.swissbox.framework.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            url( "link:classpath:META-INF/links/org.ops4j.pax.swissbox.lifecycle.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            url( "link:classpath:META-INF/links/org.apache.geronimo.specs.atinject.link" ).startLevel( Constants.START_LEVEL_SYSTEM_BUNDLES ),
            wrappedBundle(mavenBundle("com.carrotsearch","junit-benchmarks","0.4.0")).startLevel(Constants.START_LEVEL_SYSTEM_BUNDLES),
            mavenBundle("org.slf4j", "slf4j-api","1.7.2").startLevel(Constants.START_LEVEL_SYSTEM_BUNDLES),
            mavenBundle("org.codehaus.groovy", "groovy-all", "2.0.5").startLevel(Constants.START_LEVEL_SYSTEM_BUNDLES),
            mavenBundle("ch.qos.logback", "logback-core","1.0.9").startLevel(Constants.START_LEVEL_SYSTEM_BUNDLES),
            mavenBundle("ch.qos.logback", "logback-classic","1.0.9").startLevel(Constants.START_LEVEL_SYSTEM_BUNDLES),
            mavenBundle("org.apache.felix", "org.apache.felix.configadmin", "1.2.4"),
            mavenBundle("org.apache.aries", "org.apache.aries.util", "1.0.0"),
            mavenBundle("org.apache.aries.proxy", "org.apache.aries.proxy", "1.0.0"),
            mavenBundle("org.apache.aries.blueprint", "org.apache.aries.blueprint", "1.0.0"),
            mavenBundle(sfmf4jGroupId(), "sfmf4j-api", sfmf4jVersion()),
            wrappedBundle(mavenBundle(sfmf4jGroupId(), "sfmf4j-tests", sfmf4jVersion())),
            implementationOption(),
            junitBundles());
}
 
开发者ID:sworisbreathing,项目名称:sfmf4j,代码行数:38,代码来源:AbstractOSGiTest.java


示例17: configuration

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] configuration() throws Exception {
    return new Option[]{
        useDefaultKarafAsInProjectWithJunitBundles(),
        passThroughAllSystemPropertiesWithPrefix("test.cloudstack."),
        scanFeatures(maven().groupId("org.jclouds.karaf").artifactId("jclouds-karaf")
            .type("xml").classifier("features").versionAsInProject(), "jclouds-api-cloudstack"),
        installProvisionrFeatures("provisionr-cloudstack"),
        installProvisionrTestSupportBundle()
    };
}
 
开发者ID:apache,项目名称:incubator-provisionr,代码行数:12,代码来源:CloudStackProvisionrLiveTest.java


示例18: configuration

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] configuration() throws Exception {
    return new Option[]{
        useDefaultKarafAsInProjectWithJunitBundles(),
        passThroughAllSystemPropertiesWithPrefix("test.amazon."),
        installProvisionrFeatures("provisionr-amazon", "provisionr-examples"),
        installProvisionrTestSupportBundle()
    };
}
 
开发者ID:apache,项目名称:incubator-provisionr,代码行数:10,代码来源:AmazonProvisionrLiveTest.java


示例19: config

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public Option[] config() {
    return new Option[]{ karafDistributionConfiguration().frameworkUrl(
            maven().groupId("org.jentrata").artifactId("jentrata-assembly").type("tar.gz").versionAsInProject())
            .karafVersion("2.3.1").name("Apache Karaf").unpackDirectory(new File("target/exam")),
            keepRuntimeFolder(),
            logLevel(LogLevelOption.LogLevel.INFO)
    };
}
 
开发者ID:jentrata,项目名称:jentrata,代码行数:10,代码来源:JentrataTestSupport.java


示例20: configuration

import org.ops4j.pax.exam.junit.Configuration; //导入依赖的package包/类
@Configuration
public static Option[] configuration() {
	return CoreOptions.options(OpennaasExamOptions.opennaasDistributionConfiguration(),

			OpennaasExamOptions.includeFeatures("opennaas-router", "opennaas-junos", "opennaas-vcpe", "itests-helpers"),
			OpennaasExamOptions.noConsole(),
			// OpennaasExamOptions.openDebugSocket(),
			KarafDistributionOption.keepRuntimeFolder());
}
 
开发者ID:dana-i2cat,项目名称:opennaas-routing-nfv,代码行数:10,代码来源:ACLManagerTest.java



注:本文中的org.ops4j.pax.exam.junit.Configuration类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java NioDatagramAcceptor类代码示例发布时间:2022-05-22
下一篇:
Java TreeTable类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap