Search in sources :

Example 56 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class BadResourceTestCase method getTestedArchive.

public static Archive<?> getTestedArchive() throws Exception {
    JavaArchive jar = ShrinkWrap.create(JavaArchive.class, Constants.TESTED_ARCHIVE_NAME);
    jar.addClasses(SampleEJBImpl.class, ResourceEJBImpl.class);
    jar.addClasses(Constants.class, SampleEJB.class, ResourceEJB.class);
    return jar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive)

Example 57 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class ProducerInjectionTestCase method getSimpleEar.

@Deployment(name = SIMPLE_EAR, testable = false)
public static Archive<?> getSimpleEar() {
    WebArchive war = ShrinkWrap.create(WebArchive.class, SIMPLE_WAR);
    war.addClasses(SimpleBeanServlet.class);
    JavaArchive jar = ShrinkWrap.create(JavaArchive.class, SIMPLE_CDI_JAR);
    jar.addClasses(SimpleManagedBean.class, SimpleProducerBean.class);
    jar.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
    EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, SIMPLE_EAR);
    ear.addAsModule(war);
    ear.addAsModule(jar);
    return ear;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 58 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class SuperIntercepTestCase method deploy.

@Deployment
public static Archive<?> deploy() {
    JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "super-intercept-test.jar");
    jar.addPackage(SuperIntercepTestCase.class.getPackage());
    return jar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 59 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class EjbDuplicateBindingTestCase method deploy.

@Deployment
public static Archive<?> deploy() {
    final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "testglobal.ear");
    final JavaArchive b1 = ShrinkWrap.create(JavaArchive.class, "b1.jar");
    b1.addPackage(EjbDuplicateBindingTestCase.class.getPackage());
    ear.addAsModule(b1);
    return ear;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 60 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class ReferenceEarTestCase method deployment.

@Deployment
public static Archive<?> deployment() {
    final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "multideploy-reference21_31-test.ear");
    final JavaArchive jar1 = ShrinkWrap.create(JavaArchive.class, "multideploy-ejb2.jar").addClasses(Test2.class, Test2Bean.class, Test2Home.class);
    jar1.addClass(ReferenceEarTestCase.class);
    jar1.addAsManifestResource(ReferenceEarTestCase.class.getPackage(), "jboss-ejb3-ejb2.xml", "jboss-ejb3.xml");
    jar1.addAsManifestResource(ReferenceEarTestCase.class.getPackage(), "ejb-jar-ejb2.xml", "ejb-jar.xml");
    final JavaArchive jar2 = ShrinkWrap.create(JavaArchive.class, "multideploy-ejb3.jar").addClasses(Test3.class, Test3Business.class, Test3Home.class, Test3Bean.class);
    jar2.addAsManifestResource(ReferenceEarTestCase.class.getPackage(), "jboss-ejb3-ejb3.xml", "jboss-ejb3.xml");
    jar2.addAsManifestResource(ReferenceEarTestCase.class.getPackage(), "ejb-jar-ejb3.xml", "ejb-jar.xml");
    ear.addAsModule(jar1);
    ear.addAsModule(jar2);
    return ear;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)644 Deployment (org.jboss.arquillian.container.test.api.Deployment)530 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)219 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)141 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)110 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)64 File (java.io.File)58 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)57 Asset (org.jboss.shrinkwrap.api.asset.Asset)44 ZipExporter (org.jboss.shrinkwrap.api.exporter.ZipExporter)41 ArchivePath (org.jboss.shrinkwrap.api.ArchivePath)29 AbstractMgmtTestBase (org.jboss.as.test.integration.management.base.AbstractMgmtTestBase)25 TargetsContainer (org.jboss.arquillian.container.test.api.TargetsContainer)23 PropertyPermission (java.util.PropertyPermission)19 CommonCriteria (org.jboss.as.test.categories.CommonCriteria)15 JMSOperations (org.jboss.as.test.integration.common.jms.JMSOperations)15 URL (java.net.URL)13 VirtualFile (org.jboss.vfs.VirtualFile)11 ExplodedExporter (org.jboss.shrinkwrap.api.exporter.ExplodedExporter)8 OperationBuilder (org.jboss.as.controller.client.OperationBuilder)6