Search in sources :

Example 11 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class RemotingLoginModuleTestCase method createDeployment.

/**
     * Creates a deployment application for this test.
     *
     * @return
     * @throws IOException
     */
@Deployment
public static JavaArchive createDeployment() throws IOException {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, TEST_NAME + ".jar");
    jar.addClasses(HelloBean.class, Hello.class);
    jar.addAsManifestResource(Utils.getJBossEjb3XmlAsset(TEST_NAME), "jboss-ejb3.xml");
    return jar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 12 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class RemotingLoginModuleUseNewClientCertTestCase method createDeployment.

/**
     * Creates a deployment application for this test.
     *
     * @return
     * @throws IOException
     */
@Deployment
public static JavaArchive createDeployment() throws IOException {
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, TEST_NAME + ".jar");
    jar.addClasses(HelloBean.class, Hello.class);
    jar.addAsManifestResource(Utils.getJBossEjb3XmlAsset(TEST_NAME), "jboss-ejb3.xml");
    return jar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 13 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class EjbInjectionTargetWrapTestCase method getDeployment.

@Deployment
public static JavaArchive getDeployment() {
    JavaArchive jar = ShrinkWrap.create(JavaArchive.class);
    jar.addPackage(EjbInjectionTargetWrapTestCase.class.getPackage());
    jar.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
    jar.addAsServiceProvider(Extension.class, WrappingExtension.class);
    return jar;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 14 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class RemoteEJBTwoClusterTestCase method getNonForwardingDeployment.

private static Archive<?> getNonForwardingDeployment() {
    final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, RECEIVER_MODULE_NAME + ".jar");
    ejbJar.addPackage(CommonStatefulSB.class.getPackage());
    ejbJar.addPackage(RemoteStatefulSB.class.getPackage());
    ejbJar.addClass(SerialBean.class.getName());
    return ejbJar;
}
Also used : RemoteStatefulSB(org.jboss.as.test.clustering.twoclusters.bean.stateful.RemoteStatefulSB) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) CommonStatefulSB(org.jboss.as.test.clustering.twoclusters.bean.common.CommonStatefulSB) SerialBean(org.jboss.as.test.clustering.twoclusters.bean.SerialBean)

Example 15 with JavaArchive

use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.

the class RemoteEJBTwoClusterTestCase method getNonTxForwardingDeployment.

private static Archive<?> getNonTxForwardingDeployment() {
    final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, FORWARDER_MODULE_NAME + ".jar");
    ejbJar.addPackage(CommonStatefulSB.class.getPackage());
    ejbJar.addPackage(RemoteStatefulSB.class.getPackage());
    ejbJar.addClass(SerialBean.class.getName());
    // the forwarding classes
    ejbJar.addClass(AbstractForwardingStatefulSBImpl.class.getName());
    ejbJar.addClass(NonTxForwardingStatefulSBImpl.class.getName());
    // remote outbound connection configuration
    ejbJar.addAsManifestResource(RemoteEJBTwoClusterTestCase.class.getPackage(), "jboss-ejb-client.xml", "jboss-ejb-client.xml");
    return ejbJar;
}
Also used : AbstractForwardingStatefulSBImpl(org.jboss.as.test.clustering.twoclusters.bean.forwarding.AbstractForwardingStatefulSBImpl) RemoteStatefulSB(org.jboss.as.test.clustering.twoclusters.bean.stateful.RemoteStatefulSB) NonTxForwardingStatefulSBImpl(org.jboss.as.test.clustering.twoclusters.bean.forwarding.NonTxForwardingStatefulSBImpl) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) CommonStatefulSB(org.jboss.as.test.clustering.twoclusters.bean.common.CommonStatefulSB) SerialBean(org.jboss.as.test.clustering.twoclusters.bean.SerialBean)

Aggregations

JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)1209 Deployment (org.jboss.arquillian.container.test.api.Deployment)979 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)301 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)192 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)183 File (java.io.File)125 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)109 Asset (org.jboss.shrinkwrap.api.asset.Asset)89 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)62 ZipExporter (org.jboss.shrinkwrap.api.exporter.ZipExporter)57 PropertyPermission (java.util.PropertyPermission)46 InputStream (java.io.InputStream)39 TargetsContainer (org.jboss.arquillian.container.test.api.TargetsContainer)36 Test (org.junit.Test)36 ArchivePath (org.jboss.shrinkwrap.api.ArchivePath)31 FilePermission (java.io.FilePermission)29 OSGiManifestBuilder (org.jboss.osgi.metadata.OSGiManifestBuilder)26 BeansXml (org.jboss.shrinkwrap.impl.BeansXml)22 CommandSupport (io.fabric8.itests.support.CommandSupport)18 ManifestBuilder (org.jboss.gravia.resource.ManifestBuilder)18