Search in sources :

Example 21 with TargetsContainer

use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.

the class RemoteOutboundConnectionReconnectTestCase method createContainer1Deployment.

@Deployment(name = DEFAULT_AS_DEPLOYMENT, managed = false, testable = false)
@TargetsContainer(JBOSSAS_NON_CLUSTERED)
public static Archive<?> createContainer1Deployment() {
    final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, SERVER_TWO_MODULE_NAME + ".jar");
    ejbJar.addClasses(EchoOnServerTwo.class, RemoteEcho.class);
    return ejbJar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment) TargetsContainer(org.jboss.arquillian.container.test.api.TargetsContainer)

Example 22 with TargetsContainer

use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.

the class SSLEJBRemoteClientTestCase method deployStateful.

@Deployment(name = DEPLOYMENT_STATEFUL, managed = false)
@TargetsContainer(DEFAULT_JBOSSAS)
public static Archive<?> deployStateful() {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME_STATEFUL + ".jar");
    jar.addClasses(StatefulBeanRemote.class, StatefulBean.class);
    return jar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment) TargetsContainer(org.jboss.arquillian.container.test.api.TargetsContainer)

Example 23 with TargetsContainer

use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.

the class IIOPSslInvocationTestCase 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(IIOPSslStatelessBean.class, IIOPSslStatelessHome.class, IIOPSslStatelessRemote.class).addAsManifestResource(IIOPSslInvocationTestCase.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 24 with TargetsContainer

use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.

the class BasicIIOPInvocationTestCase method clientDeployment.

@Deployment(name = "client", testable = true)
@TargetsContainer("iiop-client")
public static Archive<?> clientDeployment() {
    /*
         * The @EJB annotation doesn't allow to specify the address dynamically. So, istead of
         *       @EJB(lookup = "corbaname:iiop:localhost:3628#IIOPTransactionalStatelessBean")
         *       private IIOPTransactionalHome home;
         * we need to do this trick to get the ${node0} sys prop into ejb-jar.xml
         * and have it injected that way.
         */
    String ejbJar = FileUtils.readFile(BasicIIOPInvocationTestCase.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, IIOPBasicHome.class, IIOPBasicRemote.class, BasicIIOPInvocationTestCase.class, IIOPBasicStatefulHome.class, IIOPBasicStatefulRemote.class, HandleWrapper.class).addAsManifestResource(BasicIIOPInvocationTestCase.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 25 with TargetsContainer

use of org.jboss.arquillian.container.test.api.TargetsContainer in project wildfly by wildfly.

the class DynamicJNDIContextEJBInvocationTestCase method createLocalDeployment.

@Deployment(name = "local-server-deployment")
@TargetsContainer("multinode-client")
public static Archive<?> createLocalDeployment() {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, LOCAL_DEPLOYMENT_NAME + ".jar");
    jar.addClasses(StatefulBeanA.class, LocalServerStatefulRemote.class, PassivationConfigurationSetup.class, DynamicJNDIContextEJBInvocationTestCase.class, StatefulRemoteOnOtherServer.class, StatelessRemoteOnOtherServer.class);
    jar.addClasses(StatefulRemoteHomeForBeanOnOtherServer.class);
    jar.addAsManifestResource(DynamicJNDIContextEJBInvocationTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF");
    jar.addAsManifestResource(DynamicJNDIContextEJBInvocationTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.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