Search in sources :

Example 71 with JavaArchive

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

the class EJBClientInterceptorTestCase method createDeployment.

@Deployment(testable = false)
public static Archive createDeployment() {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
    jar.addPackage(RemoteSFSB.class.getPackage());
    return jar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 72 with JavaArchive

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

the class PersistenceUnitTestCase method getDeployment.

@Deployment
public static Archive<?> getDeployment() {
    JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "ejb3-persistence-test.jar");
    jar.addClasses(SingletonBean.class, SimpleEntity.class);
    jar.addAsResource(new StringAsset(persistence_xml), "META-INF/persistence.xml");
    return jar;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 73 with JavaArchive

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

the class PoolOverrideTestCase method createDeployment.

@Deployment
public static Archive createDeployment() {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "ejb-pool-override-test.jar");
    jar.addPackage(PoolAnnotatedEJB.class.getPackage());
    jar.addAsManifestResource(PoolOverrideTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml");
    jar.addAsManifestResource(PoolOverrideTestCase.class.getPackage(), "jboss.properties", "jboss.properties");
    jar.addAsResource(createPermissionsXmlAsset(new RuntimePermission("modifyThread")), "META-INF/jboss-permissions.xml");
    return jar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 74 with JavaArchive

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

the class RemoveMethodUnitTestCase method deployment.

@Deployment
public static Archive<?> deployment() {
    final JavaArchive ejb3Jar = ShrinkWrap.create(JavaArchive.class, ANNOTATION_BASED_MODULE_NAME + ".jar").addPackage(RemoveMethodUnitTestCase.class.getPackage());
    final JavaArchive ejb2Jar = ShrinkWrap.create(JavaArchive.class, DD_BASED_MODULE_NAME + ".jar").addClasses(Ejb21ViewDDBean.class, Ejb21View.class, Ejb21ViewHome.class, RemoveMethodUnitTestCase.class).addAsManifestResource(RemoveMethodUnitTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
    final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "remove-method-test.ear");
    ear.addAsModules(ejb2Jar, ejb3Jar);
    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 75 with JavaArchive

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

the class AnnSBTest method testAppDeployment.

public static Archive<JavaArchive> testAppDeployment(final Logger LOG, final String MODULE, final Class SB_TO_TEST) {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE + ".jar").addClass(SB_TO_TEST).addClass(SimpleAuthorizationRemote.class).addClass(ParentAnnOnlyCheck.class).addClass(AnnOnlyCheckSLSBForInjection.class).addClass(AnnOnlyCheckSFSBForInjection.class);
    jar.addAsManifestResource(AnnSBTest.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml");
    jar.addPackage(CommonCriteria.class.getPackage());
    return jar;
}
Also used : AnnOnlyCheckSLSBForInjection(org.jboss.as.test.integration.ejb.security.authorization.AnnOnlyCheckSLSBForInjection) SimpleAuthorizationRemote(org.jboss.as.test.integration.ejb.security.authorization.SimpleAuthorizationRemote) CommonCriteria(org.jboss.as.test.categories.CommonCriteria) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive)

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