org.jboss.arquillian.container.test.api.Deployment



API Populatity

5 Client projects

Project: org.jboss

Project wildfly/wildfly in file ...anagement.api.ClientCompatibilityUnitTestCase.java (2013-10-10)
@@ -29,7 +29,6 @@ import java.lang.reflect.Proxy;
 import java.security.SecureRandom;
 import java.util.Random;
 
-import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.container.test.api.RunAsClient;
 import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.as.controller.client.ModelControllerClient;
@@ -43,7 +42,6 @@ import org.jboss.shrinkwrap.api.Archive;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
 import org.jboss.shrinkwrap.api.asset.ByteArrayAsset;
 import org.jboss.shrinkwrap.api.exporter.ZipExporter;
-import org.jboss.shrinkwrap.api.spec.JavaArchive;
 import org.jboss.shrinkwrap.api.spec.WebArchive;
 import org.junit.Assert;
 import org.junit.Ignore;
@@ -216,7 +214,7 @@ public class ClientCompatibilityUnitTestCase {
 
     protected static ModelControllerClient createClient(final String artifact, final String version, final String host, final int port) throws Exception {
 
-        final ChildFirstClassLoaderBuilder classLoaderBuilder = new ChildFirstClassLoaderBuilder();
+        final ChildFirstClassLoaderBuilder classLoaderBuilder = new ChildFirstClassLoaderBuilder(false);
         classLoaderBuilder.addRecursiveMavenResourceURL(artifact + ":" + version, excludes);
         classLoaderBuilder.addParentFirstClassPattern("org.jboss.as.controller.client.ModelControllerClientConfiguration");
         classLoaderBuilder.addParentFirstClassPattern("org.jboss.as.controller.client.ModelControllerClient");
Project wildfly/wildfly in file ...adapter.ResourceAdapterOperationsUnitTestCase.java (2012-03-16)
@@ -22,31 +22,28 @@
 
 package org.jboss.as.test.smoke.mgmt.resourceadapter;
 
-import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.OP;
-import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.OP_ADDR;
-
-import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.checkModelParams;
-import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.raAdminProperties;
-import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.raCommonProperties;
-import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.raConnectionProperties;
-import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.setOperationParams;
-
-import org.jboss.as.connector.subsystems.resourceadapters.Namespace;
-import org.jboss.as.connector.subsystems.resourceadapters.ResourceAdaptersExtension.ResourceAdapterSubsystemParser;
-import java.util.Properties;
 import java.util.List;
 import java.util.Map;
+import java.util.Properties;
+
 import junit.framework.Assert;
-import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.container.test.api.RunAsClient;
 import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.as.connector.subsystems.resourceadapters.Namespace;
+import org.jboss.as.connector.subsystems.resourceadapters.ResourceAdaptersExtension.ResourceAdapterSubsystemParser;
 import org.jboss.as.test.integration.management.base.ContainerResourceMgmtTestBase;
-import org.jboss.as.test.smoke.modular.utils.ShrinkWrapUtils;
 import org.jboss.dmr.ModelNode;
-import org.jboss.shrinkwrap.api.Archive;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.OP;
+import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.OP_ADDR;
+import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.checkModelParams;
+import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.raAdminProperties;
+import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.raCommonProperties;
+import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.raConnectionProperties;
+import static org.jboss.as.test.integration.management.jca.ComplexPropertiesParseUtils.setOperationParams;
+
 /**
  * Resource adapter operation unit test.
  *
@@ -56,10 +53,6 @@ import org.junit.runner.RunWith;
 @RunAsClient
 public class ResourceAdapterOperationsUnitTestCase extends ContainerResourceMgmtTestBase {
 
-    @Deployment
-    public static Archive<?> getDeployment() {
-        return ShrinkWrapUtils.createEmptyJavaArchive("dummy");
-    }
 
     @Test
     public void complexResourceAdapterAddTest() throws Exception {
Project wildfly/wildfly in file ...nagement.api.ValidateAddressOperationTestCase.java (2012-02-25)
@@ -23,6 +23,7 @@ package org.jboss.as.test.integration.management.api;
 
 import java.io.IOException;
 
+import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.container.test.api.RunAsClient;
 import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.as.controller.operations.common.ValidateAddressOperationHandler;
@@ -30,6 +31,9 @@ import org.jboss.as.test.integration.management.base.AbstractMgmtTestBase;
 import org.jboss.as.test.integration.management.util.MgmtOperationException;
 import org.jboss.as.test.integration.management.util.ModelUtil;
 import org.jboss.dmr.ModelNode;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -48,6 +52,10 @@ import static org.junit.Assert.assertTrue;
 @RunAsClient
 public class ValidateAddressOperationTestCase extends AbstractMgmtTestBase {
 
+    @Deployment
+    public static Archive<?> fakeDeployment() {
+        return ShrinkWrap.create(JavaArchive.class);
+    }
 
     @Test
     public void testValidRootAddress() throws IOException, MgmtOperationException {