use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.
the class NonHaWebSessionPersistenceTestCase method deployment.
@Deployment(name = DEPLOYMENT_1, managed = false, testable = false)
@TargetsContainer(CONTAINER_SINGLE)
public static Archive<?> deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "session-persistence.war");
war.addClasses(SimpleServlet.class, Mutable.class);
war.setWebXML(NonHaWebSessionPersistenceTestCase.class.getPackage(), "web.xml");
return war;
}
use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.
the class IIOPSecurityInvocationTestCase method deployment.
@Deployment(name = "server", testable = false)
@TargetsContainer("iiop-server")
public static Archive<?> deployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "server.jar");
jar.addClasses(IIOPSecurityStatelessBean.class, IIOPSecurityStatelessHome.class, IIOPSecurityStatelessRemote.class).addAsManifestResource(IIOPSecurityInvocationTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml");
return jar;
}
use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.
the class TransactionIIOPInvocationTestCase method deployment.
@Deployment(name = "server", testable = false)
@TargetsContainer("iiop-server")
public static Archive<?> deployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "server.jar");
jar.addClasses(IIOPTransactionalStatelessBean.class, IIOPTransactionalHome.class, IIOPTransactionalRemote.class, IIOPTransactionalStatefulHome.class, IIOPTransactionalStatefulRemote.class, IIOPTransactionalStatefulBean.class).addAsManifestResource(TransactionIIOPInvocationTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml");
return jar;
}
use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.
the class TransactionIIOPInvocationTestCase method clientDeployment.
@Deployment(name = "client", testable = true)
@TargetsContainer("iiop-client")
public static Archive<?> clientDeployment() {
String ejbJar = FileUtils.readFile(TransactionIIOPInvocationTestCase.class, "ejb-jar.xml");
final Properties properties = new Properties();
properties.putAll(System.getProperties());
if (properties.containsKey("node1")) {
properties.put("node1", NetworkUtils.formatPossibleIpv6Address((String) properties.get("node1")));
}
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "client.jar");
jar.addClasses(ClientEjb.class, IIOPTransactionalHome.class, IIOPTransactionalRemote.class, TransactionIIOPInvocationTestCase.class, IIOPTransactionalStatefulHome.class, IIOPTransactionalStatefulRemote.class).addAsManifestResource(TransactionIIOPInvocationTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml").addAsManifestResource(new StringAsset(PropertiesValueResolver.replaceProperties(ejbJar, properties)), "ejb-jar.xml");
return jar;
}
use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.
the class BasicIIOPInvocationTestCase method deployment.
@Deployment(name = "server", testable = false)
@TargetsContainer("iiop-server")
public static Archive<?> deployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "server.jar");
jar.addClasses(IIOPBasicBean.class, IIOPBasicHome.class, IIOPBasicRemote.class, IIOPBasicStatefulBean.class, IIOPBasicStatefulHome.class, IIOPBasicStatefulRemote.class, HandleWrapper.class).addAsManifestResource(BasicIIOPInvocationTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml");
return jar;
}
Aggregations