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



Project wildfly/wildfly in file ...ner.managed.JBossASManagedInContainerTestCase.java (2011-05-30)
@@ -24,7 +24,7 @@ import javax.management.Attribute;
 import javax.management.MBeanServerConnection;
 import javax.management.ObjectName;
 
-import org.jboss.arquillian.api.Deployment;
+import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.as.arquillian.container.managed.archive.ConfigService;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
@@ -39,6 +39,7 @@ import org.junit.runner.RunWith;
  */
 @RunWith(Arquillian.class)
 public class JBossASManagedInContainerTestCase {
+
     @Deployment
     public static JavaArchive createDeployment() throws Exception {
         JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "sar-example.sar");
@@ -46,7 +47,7 @@ public class JBossASManagedInContainerTestCase {
         archive.addClass(JBossASManagedInContainerTestCase.class);
         String path = "META-INF/jboss-service.xml";
         URL resourceURL = JBossASManagedInContainerTestCase.class.getResource("/sar-example.sar/" + path);
-        archive.addResource(new File(resourceURL.getFile()), path);
+        archive.addAsResource(new File(resourceURL.getFile()), path);
         return archive;
     }
 
Project wildfly/wildfly in file ...efaultinterceptor.DefaultInterceptorsTestCase.java (2011-06-01)
@@ -21,7 +21,10 @@
  */
 package org.jboss.as.testsuite.integration.ejb.interceptor.defaultinterceptor;
 
-import org.jboss.arquillian.api.Deployment;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.shrinkwrap.api.Archive;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
@@ -31,9 +34,6 @@ import org.junit.Assert;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
 /**
  * Tests that default interceptors are correctly applied
  *
@@ -46,7 +46,7 @@ public class DefaultInterceptorsTestCase {
     public static Archive<?> deploy() {
         WebArchive war = ShrinkWrap.create(WebArchive.class, "testdefaultinterceptors.war");
         war.addPackage(DefaultInterceptorsTestCase.class.getPackage());
-        war.addWebResource(new StringAsset("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
+        war.addAsWebResource(new StringAsset("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
                 "<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\"\n" +
                 "         xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
                 "         xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n" +
Project wildfly/wildfly in file ...urce.ejblocalref.EjbLocalRefInjectionTestCase.java (2011-06-01)
@@ -21,7 +21,11 @@
  */
 package org.jboss.as.testsuite.integration.injection.resource.ejblocalref;
 
-import org.jboss.arquillian.api.Deployment;
+import static org.junit.Assert.assertEquals;
+
+import java.util.concurrent.TimeUnit;
+
+import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.as.testsuite.integration.common.HttpRequest;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
@@ -30,10 +34,6 @@ import org.jboss.shrinkwrap.api.spec.WebArchive;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import java.util.concurrent.TimeUnit;
-
-import static org.junit.Assert.assertEquals;
-
 /**
  * A test for injection via env-entry in web.xml
  *
@@ -46,7 +46,7 @@ public class EjbLocalRefInjectionTestCase {
         WebArchive war = ShrinkWrap.create(WebArchive.class, "war-example.war");
         war.addPackage(HttpRequest.class.getPackage());
         war.addClasses(EjbLocalRefInjectionTestCase.class, EjbLocalRefInjectionServlet.class, NamedSLSB.class, SimpleSLSB.class, Hello.class);
-        war.addWebResource(getWebXml(),"web.xml");
+        war.addAsWebResource(getWebXml(),"web.xml");
         return war;
     }
 
Project wildfly/wildfly in file ...n.resource.enventry.EnvEntryInjectionTestCase.java (2011-06-01)
@@ -21,7 +21,11 @@
  */
 package org.jboss.as.testsuite.integration.injection.resource.enventry;
 
-import org.jboss.arquillian.api.Deployment;
+import static org.junit.Assert.assertEquals;
+
+import java.util.concurrent.TimeUnit;
+
+import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.as.testsuite.integration.common.HttpRequest;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
@@ -30,10 +34,6 @@ import org.jboss.shrinkwrap.api.spec.WebArchive;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import java.util.concurrent.TimeUnit;
-
-import static org.junit.Assert.assertEquals;
-
 /**
  * A test for injection via env-entry in web.xml
  *
@@ -46,7 +46,7 @@ public class EnvEntryInjectionTestCase {
         WebArchive war = ShrinkWrap.create(WebArchive.class, "war-example.war");
         war.addPackage(HttpRequest.class.getPackage());
         war.addClasses(EnvEntryInjectionTestCase.class, EnvEntryInjectionServlet.class);
-        war.addWebResource(getWebXml(),"web.xml");
+        war.addAsWebResource(getWebXml(),"web.xml");
         return war;
     }
 
Project wildfly/wildfly in file ...source.infinispan.InfinispanInjectionTestCase.java (2011-06-01)
@@ -25,7 +25,7 @@ package org.jboss.as.testsuite.integration.injection.resource.infinispan;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 
-import org.jboss.arquillian.api.Deployment;
+import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.shrinkwrap.api.Archive;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
@@ -44,7 +44,7 @@ public class InfinispanInjectionTestCase {
     public static Archive<?> deployment() {
         JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "infinispan-injection.jar");
         jar.addClasses(InfinispanManagedBean.class, InfinispanInjectionTestCase.class);
-        jar.addResource(new StringAsset("Manifest-Version: 1.0\nDependencies: org.infinispan export\n"), "META-INF/MANIFEST.MF");
+        jar.addAsResource(new StringAsset("Manifest-Version: 1.0\nDependencies: org.infinispan export\n"), "META-INF/MANIFEST.MF");
         return jar;
     }