javax.inject.Injectorg.jboss.arquillian.test.api.ArquillianResource



Project wildfly/wildfly in file ...tion.osgi.classloading.SystemPackagesTestCase.java (2012-10-16)
@@ -20,16 +20,15 @@ import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.List;
 
-import javax.inject.Inject;
-
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
 import org.jboss.modules.ModuleClassLoader;
+import org.jboss.osgi.metadata.OSGiManifestBuilder;
 import org.jboss.osgi.resolver.XBundle;
 import org.jboss.osgi.resolver.XBundleRevision;
 import org.jboss.osgi.resolver.XCapability;
 import org.jboss.osgi.resolver.XPackageCapability;
-import org.jboss.osgi.metadata.OSGiManifestBuilder;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
 import org.jboss.shrinkwrap.api.asset.Asset;
 import org.jboss.shrinkwrap.api.spec.JavaArchive;
@@ -50,8 +49,8 @@ import org.osgi.framework.wiring.BundleCapability;
 @RunWith(Arquillian.class)
 public class SystemPackagesTestCase {
 
-    @Inject
-    public BundleContext context;
+    @ArquillianResource
+    BundleContext context;
 
     @Deployment
     public static JavaArchive createdeployment() {
Project wildfly/wildfly in file ...n.osgi.configadmin.ConfigurationAdminTestCase.java (2012-10-16)
@@ -26,10 +26,10 @@ import java.io.InputStream;
 import java.util.Dictionary;
 import java.util.Hashtable;
 import java.util.concurrent.TimeUnit;
-import javax.inject.Inject;
 
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
 import org.jboss.as.test.integration.osgi.api.ConfiguredService;
 import org.jboss.as.test.osgi.FrameworkUtils;
 import org.jboss.osgi.metadata.OSGiManifestBuilder;
@@ -69,8 +69,8 @@ public class ConfigurationAdminTestCase {
     static final String PID_A = ConfigurationAdminTestCase.class.getSimpleName() + "-pid-a";
     static final String PID_B = "a.test.pid";
 
-    @Inject
-    public Bundle bundle;
+    @ArquillianResource
+    Bundle bundle;
 
     @Deployment
     public static JavaArchive createdeployment() {
Project wildfly/wildfly in file ...integration.osgi.core.BundleLifecycleTestCase.java (2012-10-16)
@@ -21,10 +21,9 @@ import static org.junit.Assert.assertNotNull;
 
 import java.io.InputStream;
 
-import javax.inject.Inject;
-
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
 import org.jboss.as.test.integration.osgi.core.bundle.SimpleActivator;
 import org.jboss.as.test.integration.osgi.core.bundle.SimpleService;
 import org.jboss.osgi.metadata.OSGiManifestBuilder;
@@ -48,8 +47,8 @@ import org.osgi.framework.Version;
 @RunWith(Arquillian.class)
 public class BundleLifecycleTestCase {
 
-    @Inject
-    public Bundle bundle;
+    @ArquillianResource
+    Bundle bundle;
 
     @Deployment
     public static JavaArchive createdeployment() {
Project wildfly/wildfly in file ...egration.osgi.deployment.LegacyBundleTestCase.java (2012-10-16)
@@ -22,10 +22,9 @@ import static org.osgi.framework.Constants.BUNDLE_NAME;
 
 import java.io.InputStream;
 
-import javax.inject.Inject;
-
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
 import org.jboss.osgi.metadata.OSGiManifestBuilder;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
 import org.jboss.shrinkwrap.api.asset.Asset;
@@ -45,8 +44,8 @@ import org.osgi.framework.Version;
 @RunWith(Arquillian.class)
 public class LegacyBundleTestCase {
 
-    @Inject
-    public Bundle bundle;
+    @ArquillianResource
+    Bundle bundle;
 
     @Deployment
     public static JavaArchive createdeployment() {
Project wildfly/wildfly in file ...t.integration.osgi.ejb3.StatelessBeanTestCase.java (2012-10-16)
@@ -28,11 +28,11 @@ import static org.osgi.framework.Constants.BUNDLE_SYMBOLICNAME;
 
 import java.io.InputStream;
 
-import javax.inject.Inject;
 import javax.naming.InitialContext;
 
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
 import org.jboss.as.test.integration.osgi.api.Echo;
 import org.jboss.as.test.integration.osgi.ejb3.bundle.SimpleStatelessSessionBean;
 import org.jboss.as.test.integration.osgi.ejb3.bundle.TargetBundleActivator;
@@ -60,8 +60,8 @@ public class StatelessBeanTestCase {
 
     static final String EJB3_DEPLOYMENT_NAME = "ejb3-osgi.jar";
 
-    @Inject
-    public Bundle bundle;
+    @ArquillianResource
+    Bundle bundle;
 
     @Deployment(order = 1)
     public static JavaArchive deployment() {