Search in sources :

Example 31 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentProperties.

@Deployment(name = "Properties", managed = false)
public static Archive<?> deploymentProperties() {
    // jar
    final JavaArchive jmxSAR = createArchive("Properties");
    Asset asset = createServiceAsset("Properties", "prop1=ugabuga\nprop2=HAHA\nenv=${env." + USER_SYS_PROP + "}");
    jmxSAR.addAsManifestResource(asset, "jboss-service.xml");
    return jmxSAR;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Asset(org.jboss.shrinkwrap.api.asset.Asset) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 32 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentAtomicLong.

@Deployment(name = "AtomicLong", managed = false)
public static Archive<?> deploymentAtomicLong() {
    // jar
    final JavaArchive jmxSAR = createArchive("AtomicLong");
    Asset asset = createServiceAsset("AtomicLong", "2");
    jmxSAR.addAsManifestResource(asset, "jboss-service.xml");
    return jmxSAR;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Asset(org.jboss.shrinkwrap.api.asset.Asset) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 33 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentLongArray.

@Deployment(name = "LongArray", managed = false)
public static Archive<?> deploymentLongArray() {
    // jar
    final JavaArchive jmxSAR = createArchive("LongArray");
    Asset asset = createServiceAsset("LongArray", "14,15");
    jmxSAR.addAsManifestResource(asset, "jboss-service.xml");
    return jmxSAR;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Asset(org.jboss.shrinkwrap.api.asset.Asset) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 34 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentObjectShort.

@Deployment(name = "ObjectShort", managed = false)
public static Archive<?> deploymentObjectShort() {
    // jar
    final JavaArchive jmxSAR = createArchive("ObjectShort");
    Asset asset = createServiceAsset("ObjectShort", "10");
    jmxSAR.addAsManifestResource(asset, "jboss-service.xml");
    return jmxSAR;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Asset(org.jboss.shrinkwrap.api.asset.Asset) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 35 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentObjectInteger.

@Deployment(name = "ObjectInteger", managed = false)
public static Archive<?> deploymentObjectInteger() {
    // jar
    final JavaArchive jmxSAR = createArchive("ObjectInteger");
    Asset asset = createServiceAsset("ObjectInteger", "10");
    jmxSAR.addAsManifestResource(asset, "jboss-service.xml");
    return jmxSAR;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Asset(org.jboss.shrinkwrap.api.asset.Asset) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

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