org.jboss.arquillian.test.api.ArquillianResource



API Populatity

4 Client projects

Project: org.jboss

Project wildfly/wildfly in file ...ernate.Hibernate3SharedModuleProviderTestCase.java (2011-08-16)
@@ -24,6 +24,7 @@ package org.jboss.as.testsuite.compat.jpa.hibernate;
 
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
 import org.jboss.shrinkwrap.api.Archive;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
 import org.jboss.shrinkwrap.api.asset.StringAsset;
@@ -67,6 +68,7 @@ public class Hibernate3SharedModuleProviderTestCase {
             "  </persistence-unit>" +
             "</persistence>";
 
+    @ArquillianResource
     private static InitialContext iniCtx;
 
     @BeforeClass
Project wildfly/wildfly in file ...vers.HibernateEnvers3EmbeddedProviderTestCase.java (2011-08-19)
@@ -2,6 +2,7 @@ package org.jboss.as.testsuite.compat.jpa.hibernate.envers;
 
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.test.api.ArquillianResource;
 import org.jboss.shrinkwrap.api.Archive;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
 import org.jboss.shrinkwrap.api.asset.StringAsset;
@@ -68,7 +69,7 @@ public class HibernateEnvers3EmbeddedProviderTestCase {
             "</properties>" +
             "  </persistence-unit>" +
             "</persistence>";
-
+    @ArquillianResource
     private static InitialContext iniCtx;
 
     @BeforeClass
Project wildfly/wildfly in file ....osgi.classloading.ModuleRegistrationTestCase.java (2012-10-16)
@@ -29,10 +29,12 @@ 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.osgi.OSGiConstants;
 import org.jboss.as.test.integration.osgi.core.bundle.SimpleService;
 import org.jboss.msc.service.ServiceContainer;
 import org.jboss.osgi.framework.Services;
+import org.jboss.osgi.metadata.ManifestBuilder;
 import org.jboss.osgi.resolver.XEnvironment;
 import org.jboss.osgi.resolver.XIdentityCapability;
 import org.jboss.osgi.resolver.XRequirement;
@@ -40,7 +42,6 @@ import org.jboss.osgi.resolver.XResolver;
 import org.jboss.osgi.resolver.XResource;
 import org.jboss.osgi.resolver.XResourceBuilder;
 import org.jboss.osgi.resolver.XResourceBuilderFactory;
-import org.jboss.osgi.metadata.ManifestBuilder;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
 import org.jboss.shrinkwrap.api.asset.Asset;
 import org.jboss.shrinkwrap.api.spec.JavaArchive;
@@ -64,8 +65,8 @@ public class ModuleRegistrationTestCase {
     @Inject
     public ServiceContainer container;
 
-    @Inject
-    public BundleContext context;
+    @ArquillianResource
+    BundleContext context;
 
     @Deployment
     public static JavaArchive createdeployment() {