Search in sources :

Example 11 with TargetsContainer

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

the class SSLEJBRemoteClientTestCase method deployStateless.

@Deployment(name = DEPLOYMENT_STATELESS, managed = false)
@TargetsContainer(DEFAULT_JBOSSAS)
public static Archive<?> deployStateless() {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME_STATELESS + ".jar");
    jar.addClasses(StatelessBeanRemote.class, StatelessBean.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 12 with TargetsContainer

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

the class LayeredDistributionTestCase method getDeployment.

@Deployment(name = DEPLOYMENT, managed = false, testable = false)
@TargetsContainer(CONTAINER)
public static Archive<?> getDeployment() {
    WebArchive war = ShrinkWrap.create(WebArchive.class, "test-deployment.war");
    // set dependency to the test deployment
    war.addClass(LayeredTestServlet.class);
    war.setManifest(new StringAsset("Manifest-Version: 1.0" + System.getProperty("line.separator") + "Dependencies: org.jboss.ldtc, org.jboss.modules" + System.getProperty("line.separator")));
    return war;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment) TargetsContainer(org.jboss.arquillian.container.test.api.TargetsContainer)

Example 13 with TargetsContainer

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

the class TransactionInvocationTestCase method clientDeployment.

@Deployment(name = "client", testable = true)
@TargetsContainer("multinode-client")
public static Archive<?> clientDeployment() {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, CLIENT_DEPLOYMENT + ".jar");
    jar.addClasses(ClientEjb.class, TransactionalRemote.class, TransactionInvocationTestCase.class, TransactionalStatefulRemote.class);
    jar.addAsManifestResource("META-INF/jboss-ejb-client-receivers.xml", "jboss-ejb-client.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 14 with TargetsContainer

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

the class TransactionInvocationTestCase method deployment.

@Deployment(name = "server", testable = false)
@TargetsContainer("multinode-server")
public static Archive<?> deployment() {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, SERVER_DEPLOYMENT + ".jar");
    jar.addClasses(TransactionalStatelessBean.class, TransactionalRemote.class, TransactionalStatefulRemote.class, TransactionalStatefulBean.class);
    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 15 with TargetsContainer

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

the class TransactionPropagationTestCase method clientDeployment.

@Deployment(name = CLIENT_DEPLOYMENT, testable = true)
@TargetsContainer("multinode-client")
public static Archive<?> clientDeployment() {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, CLIENT_DEPLOYMENT + ".jar");
    jar.addPackage(TransactionPropagationTestCase.class.getPackage());
    jar.addAsManifestResource("META-INF/jboss-ejb-client-receivers.xml", "jboss-ejb-client.xml");
    return jar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) 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