本文整理汇总了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()
};
}
示例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()
};
}
示例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()
};
}
示例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()
};
}
示例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()
};
}
示例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()
};
}
示例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()
};
}