use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class EjbConstructorInjectionTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class);
jar.addPackage(EjbConstructorInjectionTestCase.class.getPackage());
jar.addAsManifestResource(new StringAsset(""), "beans.xml");
return jar;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class CDIInjectionIntoEJBInterceptorTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class);
jar.addPackage(CDIInjectionIntoEJBInterceptorTestCase.class.getPackage());
jar.addAsManifestResource(new StringAsset(""), "beans.xml");
return jar;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class StatefulFailoverTestCase method createDeployment.
private static WebArchive createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, MODULE_NAME + ".war");
war.addPackage(Incrementor.class.getPackage());
war.addPackage(StatefulServlet.class.getPackage());
war.addPackage(EJBDirectory.class.getPackage());
war.setWebXML(StatefulServlet.class.getPackage(), "web.xml");
war.addAsWebInfResource(new StringAsset("<beans>" + "<interceptors><class>" + IncrementorDDInterceptor.class.getName() + "</class></interceptors>" + "<decorators><class>" + CounterDecorator.class.getName() + "</class></decorators>" + "</beans>"), "beans.xml");
war.addAsResource(PersistenceIncrementorBean.class.getPackage(), "persistence.xml", "/META-INF/persistence.xml");
return war;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class StatefulWithXPCFailoverTestCase method createDeployment.
private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, StatefulBean.MODULE + ".war");
war.addPackage(StatefulBean.class.getPackage());
war.addPackage(StatefulServlet.class.getPackage());
war.addPackage(EJBDirectory.class.getPackage());
war.setWebXML(StatefulServlet.class.getPackage(), "web.xml");
war.addAsResource(new StringAsset(persistence_xml), "META-INF/persistence.xml");
return war;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class SingletonServiceTestCase method createDeployment.
private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "singleton.war");
war.addPackage(NodeService.class.getPackage());
war.setManifest(new StringAsset("Manifest-Version: 1.0\nDependencies: org.jboss.as.server\n"));
war.addAsManifestResource(createPermissionsXmlAsset(// See org.jboss.as.server.deployment.service.ServiceActivatorProcessor#deploy()
new RuntimePermission("getClassLoader"), // See org.jboss.as.server.deployment.service.SecuredServiceRegistry
new ServerPermission("useServiceRegistry"), new ServerPermission("getCurrentServiceContainer")), "permissions.xml");
war.addAsServiceProvider(org.jboss.msc.service.ServiceActivator.class, NodeServiceActivator.class);
return war;
}
Aggregations