Search in sources :

Example 36 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentAtomicBoolean.

@Deployment(name = "AtomicBoolean", managed = false)
public static Archive<?> deploymentAtomicBoolean() {
    // jar
    final JavaArchive jmxSAR = createArchive("AtomicBoolean");
    Asset asset = createServiceAsset("AtomicBoolean", "true");
    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 37 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentObjectFloat.

@Deployment(name = "ObjectFloat", managed = false)
public static Archive<?> deploymentObjectFloat() {
    // jar
    final JavaArchive jmxSAR = createArchive("ObjectFloat");
    Asset asset = createServiceAsset("ObjectFloat", "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 38 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentDouble.

@Deployment(name = "Double", managed = false)
public static Archive<?> deploymentDouble() {
    // jar
    final JavaArchive jmxSAR = createArchive("Double");
    Asset asset = createServiceAsset("Double", "4");
    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 39 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentFile.

@Deployment(name = "File", managed = false)
public static Archive<?> deploymentFile() {
    // jar
    final JavaArchive jmxSAR = createArchive("File");
    Asset asset = createServiceAsset("File", "/I_DONT_EXIST/DUNNO");
    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 40 with JavaArchive

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

the class JMXPropertyEditorsTestCase method deploymentShortArray.

@Deployment(name = "ShortArray", managed = false)
public static Archive<?> deploymentShortArray() {
    // jar
    final JavaArchive jmxSAR = createArchive("ShortArray");
    Asset asset = createServiceAsset("ShortArray", "1,20");
    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