本文整理汇总了Java中org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator类的典型用法代码示例。如果您正苦于以下问题:Java DeploymentScenarioGenerator类的具体用法?Java DeploymentScenarioGenerator怎么用?Java DeploymentScenarioGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeploymentScenarioGenerator类属于org.jboss.arquillian.container.test.spi.client.deployment包,在下文中一共展示了DeploymentScenarioGenerator类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: register
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
builder.service(Protocol.class, DaemonProtocol.class)
.service(AuxiliaryArchiveAppender.class, WildFlySwarmDeploymentAppender.class)
.service(DeployableContainer.class, WildFlySwarmContainer.class)
.service(DeploymentScenarioGenerator.class, DefaultDeploymentScenarioGenerator.class)
.override(ResourceProvider.class, URLResourceProvider.class, SwarmURLResourceProvider.class)
.override(ResourceProvider.class, URIResourceProvider.class, SwarmURIResourceProvider.class)
.observer(WildFlySwarmObserver.class);
}
示例2: AnnotationDeploymentScenarioGenerator
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
protected DeploymentScenarioGenerator
getDefaultDeploymentScenarioGenerator() {
//FIXME: is there a way to request a specific service,
// not an interface?
AnnotationDeploymentScenarioGenerator
annotationDeploymentScenarioGenerator =
new AnnotationDeploymentScenarioGenerator();
annotationDeploymentScenarioGenerator =
injector.get().inject(annotationDeploymentScenarioGenerator);
return annotationDeploymentScenarioGenerator;
}
示例3: register
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
public void register(ExtensionBuilder builder) {
builder.observer(CECubeInitializer.class)
.observer(CEEnvironmentProcessor.class);
builder.service(ResourceProvider.class, OpenShiftHandleResourceProvider.class);
builder.service(ResourceProvider.class, LocalConfigurationResourceProvider.class);
builder.service(AuxiliaryArchiveAppender.class, UtilsArchiveAppender.class);
builder.service(DeploymentScenarioGenerator.class, ExternalDeploymentScenarioGenerator.class);
}
示例4: register
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
/**
* (non-Javadoc)
* @see
* org.jboss.arquillian.core.spi.LoadableExtension#register(org.jboss.arquillian
* .core.spi.LoadableExtension.ExtensionBuilder)
*/
@Override
public void register(ExtensionBuilder builder) {
builder.service(
DeploymentScenarioGenerator.class,
MavenDeploymentScenarioGenerator.class);
}
开发者ID:arquillian,项目名称:arquillian-extension-liferay,代码行数:13,代码来源:MavenDeploymentScenarioExtension.java
示例5: register
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder)
{
builder.service(DeployableContainer.class, FurnaceDeployableContainer.class);
builder.service(DeploymentScenarioGenerator.class, FurnaceDeploymentScenarioGenerator.class);
builder.service(Protocol.class, FurnaceProtocol.class);
builder.service(AuxiliaryArchiveProcessor.class, FurnaceAuxiliaryArchiveProcessor.class);
}
示例6: register
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder)
{
builder.service(DeployableContainer.class, ForgeDeployableContainer.class);
builder.service(DeploymentScenarioGenerator.class, ForgeDeploymentScenarioGenerator.class);
builder.service(Protocol.class, ForgeProtocol.class);
builder.service(AuxiliaryArchiveProcessor.class, ForgeAuxiliaryArchiveProcessor.class);
}
示例7: register
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
builder.service(
DeploymentScenarioGenerator.class,
BndDeploymentScenarioGenerator.class);
}
示例8: testBundleGeneration
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Test
public void testBundleGeneration() throws IOException {
BndDeploymentScenarioGenerator bndDeploymentScenarioGenerator =
new BndDeploymentScenarioGenerator() {
@Override
protected DeploymentScenarioGenerator
getDefaultDeploymentScenarioGenerator() {
return null;
}
};
bndDeploymentScenarioGenerator.setBndFile(
new File("target/test-classes/test.bnd"));
List<DeploymentDescription> deploymentDescriptions =
bndDeploymentScenarioGenerator.generate(new TestClass(ATest.class));
assertEquals(1, deploymentDescriptions.size());
DeploymentDescription deploymentDescription =
deploymentDescriptions.get(0);
Archive<?> archive = deploymentDescription.getArchive();
Node object = archive.get("META-INF/MANIFEST.MF");
assertNotNull("We must have a MANIFEST.MF", object);
Manifest manifest = new Manifest(object.getAsset().openStream());
Attributes mainAttributes = manifest.getMainAttributes();
String importPackageValue = mainAttributes.getValue("Import-Package");
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"com.liferay.arquillian.test.extras.a"));
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"com.liferay.arquillian.test.extras.b"));
assertTrue(
"Should contain org.osgi.framework",
importPackageValue.contains("org.osgi.framework"));
assertNotNull(
"Classes must be included",
archive.get("com/liferay/arquillian/test/extras/a/A.class"));
assertNotNull(
"Classes must be included",
archive.get("com/liferay/arquillian/test/extras/b/B.class"));
}
示例9: testBundleGenerationWithCommonBnd
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Test
public void testBundleGenerationWithCommonBnd() throws IOException {
BndDeploymentScenarioGenerator bndDeploymentScenarioGenerator =
new BndDeploymentScenarioGenerator() {
@Override
protected DeploymentScenarioGenerator
getDefaultDeploymentScenarioGenerator() {
return null;
}
};
bndDeploymentScenarioGenerator.setBndFile(
new File("target/test-classes/test.bnd"));
File commonBndFile = new File("target/test-classes/common.bnd");
bndDeploymentScenarioGenerator.setCommonBndFile(commonBndFile);
List<DeploymentDescription> deploymentDescriptions =
bndDeploymentScenarioGenerator.generate(new TestClass(ATest.class));
assertEquals(1, deploymentDescriptions.size());
DeploymentDescription deploymentDescription =
deploymentDescriptions.get(0);
Archive<?> archive = deploymentDescription.getArchive();
Node object = archive.get("META-INF/MANIFEST.MF");
assertNotNull("We must have a MANIFEST.MF", object);
Manifest manifest = new Manifest(object.getAsset().openStream());
Attributes mainAttributes = manifest.getMainAttributes();
String importPackageValue = mainAttributes.getValue("Import-Package");
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"com.liferay.arquillian.test.extras.a"));
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"com.liferay.arquillian.test.extras.b"));
String fooProperty = mainAttributes.getValue("Foo-Property");
assertEquals("test", fooProperty);
String fooBadProperty = mainAttributes.getValue("Foo-Bad-Property");
assertEquals("${a.non.existant.property}", fooBadProperty);
assertNotNull(
"Classes must be included",
archive.get("com/liferay/arquillian/test/extras/a/A.class"));
assertNotNull(
"Classes must be included",
archive.get("com/liferay/arquillian/test/extras/b/B.class"));
}
示例10: testBundleGenerationWithCommonBndFromSystemProperty
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Test
public void testBundleGenerationWithCommonBndFromSystemProperty()
throws IOException {
System.setProperty("sdk.dir", "target/test-classes");
BndDeploymentScenarioGenerator bndDeploymentScenarioGenerator =
new BndDeploymentScenarioGenerator() {
@Override
protected DeploymentScenarioGenerator
getDefaultDeploymentScenarioGenerator() {
return null;
}
};
bndDeploymentScenarioGenerator.setBndFile(
new File("target/test-classes/test.bnd"));
List<DeploymentDescription> deploymentDescriptions =
bndDeploymentScenarioGenerator.generate(new TestClass(ATest.class));
assertEquals(1, deploymentDescriptions.size());
DeploymentDescription deploymentDescription =
deploymentDescriptions.get(0);
Archive<?> archive = deploymentDescription.getArchive();
Node object = archive.get("META-INF/MANIFEST.MF");
assertNotNull("We must have a MANIFEST.MF", object);
Manifest manifest = new Manifest(object.getAsset().openStream());
Attributes mainAttributes = manifest.getMainAttributes();
String importPackageValue = mainAttributes.getValue("Import-Package");
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"com.liferay.arquillian.test.extras.a"));
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"com.liferay.arquillian.test.extras.b"));
String fooProperty = mainAttributes.getValue("Foo-Property");
assertEquals("test", fooProperty);
String fooBadProperty = mainAttributes.getValue("Foo-Bad-Property");
assertEquals("${a.non.existant.property}", fooBadProperty);
assertNotNull(
"Classes must be included",
archive.get("com/liferay/arquillian/test/extras/a/A.class"));
assertNotNull(
"Classes must be included",
archive.get("com/liferay/arquillian/test/extras/b/B.class"));
}
示例11: testBundleGeneration
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Test
public void testBundleGeneration() throws IOException {
BndDeploymentScenarioGenerator bndDeploymentScenarioGenerator =
new BndDeploymentScenarioGenerator() {
@Override
protected DeploymentScenarioGenerator
getDefaultDeploymentScenarioGenerator() {
return null;
}
};
bndDeploymentScenarioGenerator.setBndFile(
new File("target/test-classes/test.bnd"));
List<DeploymentDescription> deploymentDescriptions =
bndDeploymentScenarioGenerator.generate(new TestClass(ATest.class));
assertEquals(1, deploymentDescriptions.size());
DeploymentDescription deploymentDescription =
deploymentDescriptions.get(0);
Archive<?> archive = deploymentDescription.getArchive();
Node object = archive.get("META-INF/MANIFEST.MF");
assertNotNull("We must have a MANIFEST.MF", object);
Manifest manifest = new Manifest(object.getAsset().openStream());
Attributes mainAttributes = manifest.getMainAttributes();
String importPackageValue = mainAttributes.getValue("Import-Package");
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"org.arquillian.liferay.test.extras.a"));
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"org.arquillian.liferay.test.extras.b"));
assertTrue(
"Should contain org.osgi.framework",
importPackageValue.contains("org.osgi.framework"));
assertNotNull(
"Classes must be included",
archive.get("org/arquillian/liferay/test/extras/a/A.class"));
assertNotNull(
"Classes must be included",
archive.get("org/arquillian/liferay/test/extras/b/B.class"));
}
开发者ID:arquillian,项目名称:arquillian-extension-liferay,代码行数:57,代码来源:BndDeploymentScenarioGeneratorTest.java
示例12: testBundleGenerationWithCommonBnd
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Test
public void testBundleGenerationWithCommonBnd() throws IOException {
BndDeploymentScenarioGenerator bndDeploymentScenarioGenerator =
new BndDeploymentScenarioGenerator() {
@Override
protected DeploymentScenarioGenerator
getDefaultDeploymentScenarioGenerator() {
return null;
}
};
bndDeploymentScenarioGenerator.setBndFile(
new File("target/test-classes/test.bnd"));
File commonBndFile = new File("target/test-classes/common.bnd");
bndDeploymentScenarioGenerator.setCommonBndFile(commonBndFile);
List<DeploymentDescription> deploymentDescriptions =
bndDeploymentScenarioGenerator.generate(new TestClass(ATest.class));
assertEquals(1, deploymentDescriptions.size());
DeploymentDescription deploymentDescription =
deploymentDescriptions.get(0);
Archive<?> archive = deploymentDescription.getArchive();
Node object = archive.get("META-INF/MANIFEST.MF");
assertNotNull("We must have a MANIFEST.MF", object);
Manifest manifest = new Manifest(object.getAsset().openStream());
Attributes mainAttributes = manifest.getMainAttributes();
String importPackageValue = mainAttributes.getValue("Import-Package");
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"org.arquillian.liferay.test.extras.a"));
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"org.arquillian.liferay.test.extras.b"));
String fooProperty = mainAttributes.getValue("Foo-Property");
assertEquals("test", fooProperty);
String fooBadProperty = mainAttributes.getValue("Foo-Bad-Property");
assertEquals("${a.non.existant.property}", fooBadProperty);
assertNotNull(
"Classes must be included",
archive.get("org/arquillian/liferay/test/extras/a/A.class"));
assertNotNull(
"Classes must be included",
archive.get("org/arquillian/liferay/test/extras/b/B.class"));
}
开发者ID:arquillian,项目名称:arquillian-extension-liferay,代码行数:65,代码来源:BndDeploymentScenarioGeneratorTest.java
示例13: testBundleGenerationWithCommonBndFromSystemProperty
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Test
public void testBundleGenerationWithCommonBndFromSystemProperty()
throws IOException {
System.setProperty("sdk.dir", "target/test-classes");
BndDeploymentScenarioGenerator bndDeploymentScenarioGenerator =
new BndDeploymentScenarioGenerator() {
@Override
protected DeploymentScenarioGenerator
getDefaultDeploymentScenarioGenerator() {
return null;
}
};
bndDeploymentScenarioGenerator.setBndFile(
new File("target/test-classes/test.bnd"));
List<DeploymentDescription> deploymentDescriptions =
bndDeploymentScenarioGenerator.generate(new TestClass(ATest.class));
assertEquals(1, deploymentDescriptions.size());
DeploymentDescription deploymentDescription =
deploymentDescriptions.get(0);
Archive<?> archive = deploymentDescription.getArchive();
Node object = archive.get("META-INF/MANIFEST.MF");
assertNotNull("We must have a MANIFEST.MF", object);
Manifest manifest = new Manifest(object.getAsset().openStream());
Attributes mainAttributes = manifest.getMainAttributes();
String importPackageValue = mainAttributes.getValue("Import-Package");
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"org.arquillian.liferay.test.extras.a"));
assertFalse(
"Package from the classes must not be imported",
importPackageValue.contains(
"org.arquillian.liferay.test.extras.b"));
String fooProperty = mainAttributes.getValue("Foo-Property");
assertEquals("test", fooProperty);
String fooBadProperty = mainAttributes.getValue("Foo-Bad-Property");
assertEquals("${a.non.existant.property}", fooBadProperty);
assertNotNull(
"Classes must be included",
archive.get("org/arquillian/liferay/test/extras/a/A.class"));
assertNotNull(
"Classes must be included",
archive.get("org/arquillian/liferay/test/extras/b/B.class"));
}
开发者ID:arquillian,项目名称:arquillian-extension-liferay,代码行数:65,代码来源:BndDeploymentScenarioGeneratorTest.java
示例14: register
import org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
builder.observer(OpenShiftClientCreator.class)
.observer(CubeOpenShiftRegistrar.class)
.observer(OpenShiftAssistantCreator.class)
.observer(OpenShiftSuiteLifecycleController.class)
//internal
.service(ResourceProvider.class, OpenshiftClientResourceProvider.class)
.service(ResourceProvider.class, DeploymentConfigResourceProvider.class)
.service(ResourceProvider.class, DeploymentConfigListResourceProvider.class)
//External
.service(ResourceProvider.class, org.arquillian.cube.openshift.impl.enricher.external.OpenshiftClientResourceProvider.class)
.service(ResourceProvider.class, org.arquillian.cube.openshift.impl.enricher.external.DeploymentConfigResourceProvider.class)
.service(ResourceProvider.class, org.arquillian.cube.openshift.impl.enricher.external.DeploymentConfigListResourceProvider.class)
.service(TestEnricher.class, RouteURLEnricher.class)
.override(ConfigurationFactory.class, DefaultConfigurationFactory.class,
CubeOpenShiftConfigurationFactory.class)
.override(ResourceProvider.class, StandaloneCubeUrlResourceProvider.class,
KuberntesServiceUrlResourceProvider.class)
.override(ResourceInstaller.class, DefaultResourceInstaller.class, OpenshiftResourceInstaller.class)
.override(FeedbackProvider.class, DefaultFeedbackProvider.class, OpenshiftFeedbackProvider.class)
.override(KubernetesResourceLocator.class, DefaultKubernetesResourceLocator.class,
OpenshiftKubernetesResourceLocator.class)
.override(NamespaceService.class, DefaultNamespaceService.class, OpenshiftNamespaceService.class);
builder.service(ResourceProvider.class, OpenShiftAssistantResourceProvider.class);
//CE
builder.observer(CECubeInitializer.class)
.observer(CEEnvironmentProcessor.class);
builder.service(ResourceProvider.class, LocalConfigurationResourceProvider.class);
if (Validate.classExists("org.jboss.arquillian.container.test.spi.client.deployment.AuxiliaryArchiveAppender")
&& doesNotContainStandaloneExtension()) {
builder.service(AuxiliaryArchiveAppender.class, UtilsArchiveAppender.class);
builder.service(DeploymentScenarioGenerator.class, ExternalDeploymentScenarioGenerator.class);
builder.observer(TemplateContainerStarter.class);
builder.service(ResourceProvider.class, OpenShiftHandleResourceProvider.class);
}
if (isGrapheneInStandaloneMode()) {
builder.override(ResourceProvider.class, CustomizableURLResourceProvider.class,
OpenShiftCustomizableURLResourceProvider.class);
}
}