openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1434647 - /openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/portable/injectiontarget/supportInjections/SupportInjectionTest.java
Date Thu, 17 Jan 2013 12:44:20 GMT
Author: struberg
Date: Thu Jan 17 12:44:20 2013
New Revision: 1434647

URL: http://svn.apache.org/viewvc?rev=1434647&view=rev
Log:
OWB-344 fix broken test

Modified:
    openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/portable/injectiontarget/supportInjections/SupportInjectionTest.java

Modified: openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/portable/injectiontarget/supportInjections/SupportInjectionTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/portable/injectiontarget/supportInjections/SupportInjectionTest.java?rev=1434647&r1=1434646&r2=1434647&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/portable/injectiontarget/supportInjections/SupportInjectionTest.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/portable/injectiontarget/supportInjections/SupportInjectionTest.java
Thu Jan 17 12:44:20 2013
@@ -31,25 +31,7 @@ import org.junit.Test;
 
 public class SupportInjectionTest extends AbstractUnitTest
 {
-    class SupportCreational implements CreationalContext<SupportInjectionBean>
-    {
-
-        @Override
-        public void push(SupportInjectionBean incompleteInstance)
-        {
-            // TODO Auto-generated method stub
-            
-        }
 
-        @Override
-        public void release()
-        {
-            // TODO Auto-generated method stub
-            
-        }
-        
-    }
-    
     @Test
     public void testInjectionTarget()
     {
@@ -59,7 +41,7 @@ public class SupportInjectionTest extend
         startContainer(classes);
         
         InjectionTarget<SupportInjectionBean> model = getBeanManager().createInjectionTarget(getBeanManager().createAnnotatedType(SupportInjectionBean.class));
-        SupportCreational cc = new SupportCreational();
+        CreationalContext cc = getBeanManager().createCreationalContext(null);
         SupportInjectionBean instance = model.produce(cc);
         
         model.inject(instance, cc);



Mime
View raw message