Search in sources :

Example 26 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive 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 27 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive 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 28 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive 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 29 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive 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)

Example 30 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive in project deltaspike by apache.

the class ViewAccessScopedTest method deploy.

@Deployment
public static WebArchive deploy() {
    String simpleName = ViewAccessScopedTest.class.getSimpleName();
    String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
    JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, archiveName + ".jar").addPackage(ViewAccessScopedTest.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

WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)505 Deployment (org.jboss.arquillian.container.test.api.Deployment)409 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)159 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)104 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)83 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)80 HttpRequest (org.jboss.as.test.integration.common.HttpRequest)28 File (java.io.File)22 WebAppDescriptor (org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor)14 BatchTestHelper (org.javaee7.util.BatchTestHelper)13 PropertyPermission (java.util.PropertyPermission)11 ZipExporter (org.jboss.shrinkwrap.api.exporter.ZipExporter)11 SocketPermission (java.net.SocketPermission)10 ZipExporterImpl (org.jboss.shrinkwrap.impl.base.exporter.zip.ZipExporterImpl)10 CommonCriteria (org.jboss.as.test.categories.CommonCriteria)9 BeforeClass (org.junit.BeforeClass)9 Util (org.jboss.as.test.shared.integration.ejb.security.Util)7 URL (java.net.URL)6 FilePermission (java.io.FilePermission)5 BeansDescriptor (org.jboss.shrinkwrap.descriptor.api.beans10.BeansDescriptor)5