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