Search in sources :

Example 1 with TargetsContainer

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;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment) TargetsContainer(org.jboss.arquillian.container.test.api.TargetsContainer)

Example 2 with TargetsContainer

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;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment) TargetsContainer(org.jboss.arquillian.container.test.api.TargetsContainer)

Example 3 with TargetsContainer

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;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment) TargetsContainer(org.jboss.arquillian.container.test.api.TargetsContainer)

Example 4 with TargetsContainer

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;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Properties(java.util.Properties) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment) TargetsContainer(org.jboss.arquillian.container.test.api.TargetsContainer)

Example 5 with TargetsContainer

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;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment) TargetsContainer(org.jboss.arquillian.container.test.api.TargetsContainer)

Aggregations

Deployment (org.jboss.arquillian.container.test.api.Deployment)27 TargetsContainer (org.jboss.arquillian.container.test.api.TargetsContainer)27 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)23 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)18 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)5 Properties (java.util.Properties)4 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)4 AuthPermission (javax.security.auth.AuthPermission)1 Util (org.jboss.as.test.shared.integration.ejb.security.Util)1