openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r979196 - in /openwebbeans/trunk/webbeans-porting: pom.xml src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java
Date Mon, 26 Jul 2010 08:36:51 GMT
Author: gerdogdu
Date: Mon Jul 26 08:36:50 2010
New Revision: 979196

URL: http://svn.apache.org/viewvc?rev=979196&view=rev
Log:
[OWB-426] Tweak EJBPlugin to work with Standalone Tests

Modified:
    openwebbeans/trunk/webbeans-porting/pom.xml
    openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java

Modified: openwebbeans/trunk/webbeans-porting/pom.xml
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-porting/pom.xml?rev=979196&r1=979195&r2=979196&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-porting/pom.xml (original)
+++ openwebbeans/trunk/webbeans-porting/pom.xml Mon Jul 26 08:36:50 2010
@@ -135,6 +135,12 @@
             <artifactId>jasper-el</artifactId>
             <version>6.0.20</version>
         </dependency>
+        <dependency>
+        	<groupId>org.apache.openwebbeans</groupId>
+        	<artifactId>openwebbeans-ejb</artifactId>
+        	<version>${project.version}</version>
+        	<scope>provided</scope>
+        </dependency>
 
 
     </dependencies>

Modified: openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java?rev=979196&r1=979195&r2=979196&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java
(original)
+++ openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java
Mon Jul 26 08:36:50 2010
@@ -47,6 +47,7 @@ import org.apache.openejb.jee.StatefulBe
 import org.apache.openejb.jee.StatelessBean;
 import org.apache.webbeans.container.BeanManagerImpl;
 import org.apache.webbeans.corespi.ServiceLoader;
+import org.apache.webbeans.ejb.EjbPlugin;
 import org.apache.webbeans.lifecycle.StandaloneLifeCycle;
 import org.apache.webbeans.spi.ScannerService;
 import org.apache.webbeans.test.tck.mock.TCKMetaDataDiscoveryImpl;
@@ -151,6 +152,8 @@ public class StandaloneContainersImpl im
         {
             this.lifeCycle.stopApplication(null);
             this.lifeCycle = null;   
+            
+            EjbPlugin.CONFIGURED_FOR_USED_IN_TEST = false;
         }        
         finally
         {
@@ -207,7 +210,9 @@ public class StandaloneContainersImpl im
             System.setProperty("openejb.validation.output.level", "VERBOSE");
             Properties properties = new Properties(System.getProperties());
             properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, InitContextFactory.class.getName());
-            new InitialContext(properties);            
+            new InitialContext(properties);    
+            
+            EjbPlugin.CONFIGURED_FOR_USED_IN_TEST = true;
         }
         catch(Exception e)
         {



Mime
View raw message