use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class SAMLMetadataTestCase method deploymentSP1.
@Deployment(name = "service-provider-1")
public static WebArchive deploymentSP1() {
WebArchive serviceProvider = serviceProviderWithKeyStore("sp-metadata1.war");
serviceProvider.addAsResource(SAMLMetadataTestCase.class.getPackage(), "sp-metadata1.xml", "sp-metadata.xml");
return serviceProvider;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class SAMLMetadataTestCase method deploymentIdP.
@Deployment(name = "identity-provider")
public static WebArchive deploymentIdP() {
WebArchive identityProvider = identityProviderWithKeyStore("idp-metadata.war");
identityProvider.addAsResource(SAMLMetadataTestCase.class.getPackage(), "idp-metadata.xml", "idp-metadata.xml");
return identityProvider;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class EarDeploymentEjbJndiBindingTestCase method createEar.
/**
* Create the deployment
*
* @return
*/
@Deployment
public static EnterpriseArchive createEar() {
// create the top level ear
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, EAR_NAME);
// create the jar containing the EJBs
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, JAR_NAME);
// add the entire package
jar.addPackage(SampleSLSB.class.getPackage());
// add the jar to the .ear
ear.add(jar, "/", ZipExporter.class);
// return the .ear
return ear;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class StandaloneModuleEjbJndiBindingTestCase method createStandaloneJar.
/**
* Create the deployment
*
* @return
*/
@Deployment
public static JavaArchive createStandaloneJar() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, ARCHIVE_NAME);
// add the entire package
jar.addPackage(SampleSLSB.class.getPackage());
return jar;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class ConfigPropertyTestCase method createDeployment.
/**
* Define the deployment
*
* @return The deployment archive
*/
@Deployment
public static ResourceAdapterArchive createDeployment() throws Exception {
String deploymentName = "as7_1452.rar";
ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, deploymentName);
JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "as7_1452.jar");
ja.addPackage("org.jboss.as.test.smoke.deployment.rar.configproperty").addClasses(ConfigPropertyTestCase.class, MgmtOperationException.class, XMLElementReader.class, XMLElementWriter.class);
ja.addPackage(AbstractMgmtTestBase.class.getPackage());
raa.addAsLibrary(ja);
raa.addAsManifestResource(ConfigPropertyTestCase.class.getPackage(), "ra.xml", "ra.xml").addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client,org.jboss.dmr,org.jboss.as.cli\n"), "MANIFEST.MF");
return raa;
}
Aggregations