当前位置: 首页>>代码示例>>Java>>正文


Java KarafDistributionOption.features方法代码示例

本文整理汇总了Java中org.ops4j.pax.exam.karaf.options.KarafDistributionOption.features方法的典型用法代码示例。如果您正苦于以下问题:Java KarafDistributionOption.features方法的具体用法?Java KarafDistributionOption.features怎么用?Java KarafDistributionOption.features使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.ops4j.pax.exam.karaf.options.KarafDistributionOption的用法示例。


在下文中一共展示了KarafDistributionOption.features方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: config

import org.ops4j.pax.exam.karaf.options.KarafDistributionOption; //导入方法依赖的package包/类
@Configuration
public Option[] config() {
	// FIXME Read mqnass features version from maven.
	// now mqnaas features version in this file must be changed manually in each release!
	return new Option[] {
			// distribution to test: Karaf 3.0.3
			KarafDistributionOption.karafDistributionConfiguration()
					.frameworkUrl(CoreOptions.maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("3.0.3"))
					.karafVersion("3.0.3").name("Apache Karaf").useDeployFolder(false)
					// keep deployed Karaf
					.unpackDirectory(new File("target/exam")),
			// no local and remote consoles
			KarafDistributionOption.configureConsole().ignoreLocalConsole(),
			KarafDistributionOption.configureConsole().ignoreRemoteShell(),
			// keep runtime folder allowing analysing results
			KarafDistributionOption.keepRuntimeFolder(),
			// use custom logging configuration file with a custom appender
			KarafDistributionOption.replaceConfigurationFile("etc/org.ops4j.pax.logging.cfg", new File(
					"src/test/resources/org.ops4j.pax.logging.cfg")),
			// add mqnaas-bundletree feature
			KarafDistributionOption.features(CoreOptions.maven().groupId("org.mqnaas").artifactId("mqnaas").classifier("features")
					.type("xml").version("0.0.1-SNAPSHOT"), "mqnaas-bundletree"),
	// debug option
	// KarafDistributionOption.debugConfiguration()
	};
}
 
开发者ID:dana-i2cat,项目名称:mqnaas,代码行数:27,代码来源:BundleGuardTest.java

示例2: config

import org.ops4j.pax.exam.karaf.options.KarafDistributionOption; //导入方法依赖的package包/类
@Configuration
public Option[] config() {
	// FIXME Read mqnass features version from maven. Same applies for bundletree-itests-testbundleX version
	// now mqnaas features version in this file must be changed manually in each release!
	return new Option[] {
			// distribution to test: Karaf 3.0.3
			KarafDistributionOption.karafDistributionConfiguration()
					.frameworkUrl(CoreOptions.maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("3.0.3"))
					.karafVersion("3.0.3").name("Apache Karaf").useDeployFolder(false)
					// keep deployed Karaf
					.unpackDirectory(new File("target/exam")),
			// no local and remote consoles
			KarafDistributionOption.configureConsole().ignoreLocalConsole(),
			KarafDistributionOption.configureConsole().ignoreRemoteShell(),
			// keep runtime folder allowing analysing results
			KarafDistributionOption.keepRuntimeFolder(),
			// use custom logging configuration file with a custom appender
			KarafDistributionOption.replaceConfigurationFile("etc/org.ops4j.pax.logging.cfg", new File(
					"src/test/resources/org.ops4j.pax.logging.cfg")),
			// add core feature (including bundletree)
			KarafDistributionOption.features(CoreOptions.maven().groupId("org.mqnaas").artifactId("mqnaas").classifier("features")
					.type("xml").version("0.0.1-SNAPSHOT"), "mqnaas"),
			// install both test bundles
			CoreOptions.mavenBundle().groupId("org.mqnaas").artifactId("bundletree-itests-testbundleA").version("0.0.1-SNAPSHOT"),
			CoreOptions.mavenBundle().groupId("org.mqnaas").artifactId("bundletree-itests-testbundleB").version("0.0.1-SNAPSHOT"),
	// debug option
	// KarafDistributionOption.debugConfiguration()
	};
}
 
开发者ID:dana-i2cat,项目名称:mqnaas,代码行数:30,代码来源:BundleUtilsTest.java

示例3: config

import org.ops4j.pax.exam.karaf.options.KarafDistributionOption; //导入方法依赖的package包/类
@Configuration
public Option[] config() {
	// FIXME Read mqnass features version from maven.
	// now mqnaas features version in this file must be changed manually in each release!
	return new Option[] {
			// distribution to test: Karaf 3.0.3
			KarafDistributionOption.karafDistributionConfiguration()
					.frameworkUrl(CoreOptions.maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("3.0.3"))
					.karafVersion("3.0.3").name("Apache Karaf").useDeployFolder(false)
					// keep deployed Karaf
					.unpackDirectory(new File("target/paxexam")),
			// no local and remote consoles
			KarafDistributionOption.configureConsole().ignoreLocalConsole(),
			KarafDistributionOption.configureConsole().ignoreRemoteShell(),
			// keep runtime folder allowing analysing results
			KarafDistributionOption.keepRuntimeFolder(),
			// use custom logging configuration file with a custom appender
			KarafDistributionOption.replaceConfigurationFile("etc/org.ops4j.pax.logging.cfg", new File(
					"src/test/resources/org.ops4j.pax.logging.cfg")),
			// maintain our log configuration
			KarafDistributionOption.doNotModifyLogConfiguration(),
			// add network feature
			KarafDistributionOption.features(CoreOptions.maven().groupId("org.mqnaas.extensions").artifactId("network").classifier("features")
					.type("xml").version("0.0.1-SNAPSHOT"), "network"),
			KarafDistributionOption.features(CoreOptions.maven().groupId("org.mqnaas.extensions").artifactId("odl").classifier("features")
					.type("xml").version("0.0.1-SNAPSHOT"), "odl"),
			KarafDistributionOption.features(CoreOptions.maven().groupId("org.mqnaas.extensions").artifactId("modelreader")
					.classifier("features").type("xml").version("0.0.1-SNAPSHOT"), "mqnaas-modelreader"),
			KarafDistributionOption.features(CoreOptions.maven().groupId("org.mqnaas").artifactId("mqnaas")
					.classifier("features").type("xml").version("0.0.1-SNAPSHOT"), "mqnaas-wiremock"),
	// debug option
	// KarafDistributionOption.debugConfiguration()
	};
}
 
开发者ID:dana-i2cat,项目名称:mqnaas,代码行数:35,代码来源:ResourceModelReaderTest.java

示例4: config

import org.ops4j.pax.exam.karaf.options.KarafDistributionOption; //导入方法依赖的package包/类
@Configuration
public Option[] config() {
	// FIXME Read mqnass features version from maven.
	// now mqnaas features version in this file must be changed manually in each release!
	return new Option[] {
			// distribution to test: Karaf 3.0.3
			KarafDistributionOption.karafDistributionConfiguration()
					.frameworkUrl(CoreOptions.maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("3.0.3"))
					.karafVersion("3.0.3").name("Apache Karaf").useDeployFolder(false)
					// keep deployed Karaf
					.unpackDirectory(new File("target/paxexam")),
			// no local and remote consoles
			KarafDistributionOption.configureConsole().ignoreLocalConsole(),
			KarafDistributionOption.configureConsole().ignoreRemoteShell(),
			// keep runtime folder allowing analysing results
			KarafDistributionOption.keepRuntimeFolder(),
			// use custom logging configuration file with a custom appender
			KarafDistributionOption.replaceConfigurationFile("etc/org.ops4j.pax.logging.cfg", new File(
					"src/test/resources/org.ops4j.pax.logging.cfg")),
			// maintain our log configuration
			KarafDistributionOption.doNotModifyLogConfiguration(),
			// add network feature
			KarafDistributionOption.features(CoreOptions.maven().groupId("org.mqnaas.extensions").artifactId("network").classifier("features")
					.type("xml").version("0.0.1-SNAPSHOT"), "network"),
	// debug option
	// KarafDistributionOption.debugConfiguration()
	};
}
 
开发者ID:dana-i2cat,项目名称:mqnaas,代码行数:29,代码来源:ResourcesIntegrationTest.java

示例5: config

import org.ops4j.pax.exam.karaf.options.KarafDistributionOption; //导入方法依赖的package包/类
@Configuration
public Option[] config() {
	// FIXME Read mqnass features version from maven.
	// now mqnaas features version in this file must be changed manually in each release!
	return new Option[] {
			// distribution to test: Karaf 3.0.3
			KarafDistributionOption.karafDistributionConfiguration()
					.frameworkUrl(CoreOptions.maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("3.0.3"))
					.karafVersion("3.0.3").name("Apache Karaf").useDeployFolder(false)
					// keep deployed Karaf
					.unpackDirectory(new File("target/paxexam")),
			// no local and remote consoles
			KarafDistributionOption.configureConsole().ignoreLocalConsole(),
			KarafDistributionOption.configureConsole().ignoreRemoteShell(),
			// keep runtime folder allowing analysing results
			KarafDistributionOption.keepRuntimeFolder(),
			// use custom logging configuration file with a custom appender
			KarafDistributionOption.replaceConfigurationFile("etc/org.ops4j.pax.logging.cfg", new File(
					"src/test/resources/org.ops4j.pax.logging.cfg")),
			// maintain our log configuration
			KarafDistributionOption.doNotModifyLogConfiguration(),
			// add network feature
			KarafDistributionOption.features(CoreOptions.maven().groupId("org.mqnaas.extensions").artifactId("network").classifier("features")
					.type("xml").version("0.0.1-SNAPSHOT"), "network"),
			CoreOptions.mavenBundle("org.mqnaas.extensions", "network-test-helpers", "0.0.1-SNAPSHOT"),
	// debug option
	// KarafDistributionOption.debugConfiguration()
	};
}
 
开发者ID:dana-i2cat,项目名称:mqnaas,代码行数:30,代码来源:NetworkManagementTest.java

示例6: config

import org.ops4j.pax.exam.karaf.options.KarafDistributionOption; //导入方法依赖的package包/类
@Configuration
public Option[] config() {
	// FIXME Read mqnass features version from maven.
	// now mqnaas features version in this file must be changed manually in each release!
	return new Option[] {
			// distribution to test: Karaf 3.0.3
			KarafDistributionOption.karafDistributionConfiguration()
					.frameworkUrl(CoreOptions.maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("3.0.3"))
					.karafVersion("3.0.3").name("Apache Karaf").useDeployFolder(false)
					// keep deployed Karaf
					.unpackDirectory(new File("target/paxexam")),
			// no local and remote consoles
			KarafDistributionOption.configureConsole().ignoreLocalConsole(),
			KarafDistributionOption.configureConsole().ignoreRemoteShell(),
			// keep runtime folder allowing analysing results
			KarafDistributionOption.keepRuntimeFolder(),
			// use custom logging configuration file with a custom appender
			KarafDistributionOption.replaceConfigurationFile("etc/org.ops4j.pax.logging.cfg", new File(
					"src/test/resources/org.ops4j.pax.logging.cfg")),
			// maintain our log configuration
			KarafDistributionOption.doNotModifyLogConfiguration(),
			// add MQNaaS feature
			KarafDistributionOption.features(
					CoreOptions.maven().groupId("org.mqnaas").artifactId("mqnaas").classifier("features").type("xml").version("0.0.1-SNAPSHOT"),
					"mqnaas"),
			// add MQNaaS OpenStack feature
			KarafDistributionOption.features(
					CoreOptions.maven().groupId("org.mqnaas.extensions").artifactId("openstack").classifier("features").type("xml")
							.version("0.0.1-SNAPSHOT"), "mqnaas-openstack"),
			// install mqnaas-test-helpers bundle
			CoreOptions.mavenBundle().groupId("org.mqnaas").artifactId("mqnaas-test-helpers").version("0.0.1-SNAPSHOT"),
	// debug option
	// KarafDistributionOption.debugConfiguration()
	};
}
 
开发者ID:dana-i2cat,项目名称:mqnaas,代码行数:36,代码来源:JCloudsClientProvidersTest.java

示例7: config

import org.ops4j.pax.exam.karaf.options.KarafDistributionOption; //导入方法依赖的package包/类
@Configuration
public Option[] config() {
	// FIXME Read mqnass features version from maven.
	// now mqnaas features version in this file must be changed manually in each release!
	return new Option[] {
			// distribution to test: Karaf 3.0.3
			KarafDistributionOption.karafDistributionConfiguration()
					.frameworkUrl(CoreOptions.maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("3.0.3"))
					.karafVersion("3.0.3").name("Apache Karaf").useDeployFolder(false)
					// keep deployed Karaf
					.unpackDirectory(new File("target/paxexam")),
			// no local and remote consoles
			KarafDistributionOption.configureConsole().ignoreLocalConsole(),
			KarafDistributionOption.configureConsole().ignoreRemoteShell(),
			// keep runtime folder allowing analysing results
			KarafDistributionOption.keepRuntimeFolder(),
			// use custom logging configuration file with a custom appender
			KarafDistributionOption.replaceConfigurationFile("etc/org.ops4j.pax.logging.cfg", new File(
					"src/test/resources/org.ops4j.pax.logging.cfg")),
			// maintain our log configuration
			KarafDistributionOption.doNotModifyLogConfiguration(),
			// add network feature
			KarafDistributionOption.features(CoreOptions.maven().groupId("org.mqnaas").artifactId("mqnaas").classifier("features").type("xml")
					.version("0.0.1-SNAPSHOT"), "mqnaas"),
			// install mqnaas-test-helpers bundle
			CoreOptions.mavenBundle().groupId("org.mqnaas").artifactId("mqnaas-test-helpers").version("0.0.1-SNAPSHOT"),
	// debug option
	// KarafDistributionOption.debugConfiguration()
	};
}
 
开发者ID:dana-i2cat,项目名称:mqnaas,代码行数:31,代码来源:DependencyInjectionTests.java


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