openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1304669 - /openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/AbstractUnitTest.java
Date Fri, 23 Mar 2012 23:57:53 GMT
Author: struberg
Date: Fri Mar 23 23:57:53 2012
New Revision: 1304669

URL: http://svn.apache.org/viewvc?rev=1304669&view=rev
Log:
allow controling contexts from within unit tests

Modified:
    openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/AbstractUnitTest.java

Modified: openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/AbstractUnitTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/AbstractUnitTest.java?rev=1304669&r1=1304668&r2=1304669&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/AbstractUnitTest.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/AbstractUnitTest.java
Fri Mar 23 23:57:53 2012
@@ -33,6 +33,7 @@ import org.apache.webbeans.config.WebBea
 import org.apache.webbeans.exception.WebBeansConfigurationException;
 import org.apache.webbeans.lifecycle.test.OpenWebBeansTestLifeCycle;
 import org.apache.webbeans.lifecycle.test.OpenWebBeansTestMetaDataDiscoveryService;
+import org.apache.webbeans.spi.ContainerLifecycle;
 import org.apache.webbeans.util.WebBeansUtil;
 import org.junit.Assert;
 
@@ -84,7 +85,11 @@ public abstract class AbstractUnitTest
         }
         
     }
-    
+
+    protected ContainerLifecycle getLifecycle()
+    {
+        return testLifecycle;
+    }
     
     protected void shutDownContainer()
     {



Mime
View raw message