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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations