use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class PersistenceContextRefTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME + ".war");
war.addPackage(PersistenceContextRefTestCase.class.getPackage());
war.addAsResource(new StringAsset(persistence_xml), "META-INF/persistence.xml");
war.addAsWebInfResource(getWebXml(), "web.xml");
return war;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class EjbRefLookupTestCase method deployWar.
@Deployment(order = 1, name = WAR_DEPLOYMENT)
public static Archive<?> deployWar() {
WebArchive war = ShrinkWrap.create(WebArchive.class);
war.addClasses(FirstRestService.class, FirstTestServlet.class, SecondRestService.class, SecondTestServlet.class);
war.addAsManifestResource(new StringAsset("Dependencies: deployment.ejb-test-ear.ear.ejb.jar\n"), "MANIFEST.MF");
war.addAsWebInfResource(EjbRefLookupTestCase.class.getPackage(), "web.xml", "web.xml");
war.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
return war;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset 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.asset.StringAsset in project wildfly by wildfly.
the class TxTimeoutTimerServiceTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "Jar.jar");
jar.addPackage(TxTimeoutTimerServiceTestCase.class.getPackage());
jar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.jts \n"), "MANIFEST.MF");
return jar;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class TimerServiceSuspendTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "testTimerServiceSimple.war");
war.addPackage(TimerServiceSuspendTestCase.class.getPackage());
war.addAsManifestResource(new StringAsset("Dependencies: org.jboss.dmr, org.jboss.as.controller-client\n"), "MANIFEST.MF");
return war;
}
Aggregations