Search in sources :

Example 26 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.

the class PartialBeanAsAbstractClassTest method war.

@Deployment
public static WebArchive war() {
    String simpleName = PartialBeanAsAbstractClassTest.class.getSimpleName();
    String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
    JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, archiveName + ".jar").addPackage(PartialBeanAsAbstractClassTest.class.getPackage()).addPackage(TestPartialBeanBinding.class.getPackage()).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
    WebArchive webArchive = ShrinkWrap.create(WebArchive.class, archiveName + ".war").addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndPartialBeanArchive()).addAsLibraries(testJar).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
    return webArchive;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 27 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.

the class ConcurrencyBugTest method war.

@Deployment
public static WebArchive war() {
    final String simpleName = ConcurrencyBugTest.class.getSimpleName();
    final String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
    final JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, archiveName + ".jar").addPackage(ConcurrencyBugTest.class.getPackage()).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
    final WebArchive webArchive = ShrinkWrap.create(WebArchive.class, archiveName + ".war").addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndPartialBeanArchive()).addAsLibraries(testJar).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
    return webArchive;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 28 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.

the class DisabledRepositoryTest method deployment.

@Deployment
public static Archive<?> deployment() {
    WebArchive archive = initDeployment().addClasses(SimpleRepository.class, RepositoryDeactivator.class, DisabledRepository.class);
    archive.delete("WEB-INF/classes/META-INF/apache-deltaspike.properties");
    archive.addAsWebInfResource("disabled/META-INF/apache-deltaspike.properties", "classes/META-INF/apache-deltaspike.properties");
    return archive;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment) TestDeployments.initDeployment(org.apache.deltaspike.data.test.util.TestDeployments.initDeployment)

Example 29 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.

the class ScopedPartialBeanTest method war.

@Deployment
public static WebArchive war() {
    String simpleName = ScopedPartialBeanTest.class.getSimpleName();
    String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
    JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, archiveName + ".jar").addPackage(ScopedPartialBeanTest.class.getPackage()).addPackage(TestPartialBeanBinding.class.getPackage()).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
    WebArchive webArchive = ShrinkWrap.create(WebArchive.class, archiveName + ".war").addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndPartialBeanArchive()).addAsLibraries(testJar).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
    return webArchive;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 30 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.

the class ExplicitlyGroupedConversationsTest method deploy.

@Deployment
public static WebArchive deploy() {
    String simpleName = ExplicitlyGroupedConversationsTest.class.getSimpleName();
    String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
    JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, archiveName + ".jar").addPackage(ExplicitlyGroupedConversationsTest.class.getPackage().getName()).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
    return ShrinkWrap.create(WebArchive.class, archiveName + ".war").addAsLibraries(ArchiveUtils.getDeltaSpikeCoreArchive()).addAsLibraries(testJar).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

Deployment (org.jboss.arquillian.container.test.api.Deployment)853 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)523 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)410 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)288 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)139 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)139 Asset (org.jboss.shrinkwrap.api.asset.Asset)45 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)45 HttpRequest (org.jboss.as.test.integration.common.HttpRequest)28 TargetsContainer (org.jboss.arquillian.container.test.api.TargetsContainer)27 PropertyPermission (java.util.PropertyPermission)26 CommonCriteria (org.jboss.as.test.categories.CommonCriteria)23 AbstractMgmtTestBase (org.jboss.as.test.integration.management.base.AbstractMgmtTestBase)23 JMSOperations (org.jboss.as.test.integration.common.jms.JMSOperations)16 File (java.io.File)15 SocketPermission (java.net.SocketPermission)13 BatchTestHelper (org.javaee7.util.BatchTestHelper)13 WebAppDescriptor (org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor)13 Util (org.jboss.as.test.shared.integration.ejb.security.Util)11 Properties (java.util.Properties)10