openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1434469 - /openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/interceptors/dependent/DependentLifecycleTest.java
Date Wed, 16 Jan 2013 23:04:39 GMT
Author: struberg
Date: Wed Jan 16 23:04:39 2013
New Revision: 1434469

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

Modified:
    openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/interceptors/dependent/DependentLifecycleTest.java

Modified: openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/interceptors/dependent/DependentLifecycleTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/interceptors/dependent/DependentLifecycleTest.java?rev=1434469&r1=1434468&r2=1434469&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/interceptors/dependent/DependentLifecycleTest.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/newtests/interceptors/dependent/DependentLifecycleTest.java
Wed Jan 16 23:04:39 2013
@@ -50,16 +50,14 @@ public class DependentLifecycleTest exte
         
         CreationalContext<DependentLifecycleBean> ctx = getBeanManager().createCreationalContext(bean);
 
-        Object reference = getBeanManager().getReference(bean, DependentLifecycleBean.class,
ctx);
+        DependentLifecycleBean reference = (DependentLifecycleBean) getBeanManager().getReference(bean,
DependentLifecycleBean.class, ctx);
         Assert.assertNotNull(reference);
         
-        Assert.assertTrue(reference instanceof DependentLifecycleBean);
-
         Assert.assertEquals(1, DependentLifecycleBean.value);
         Assert.assertTrue(DependentSuperBean.SC);
         Assert.assertTrue(MyExtraSuper.SC);
                         
-        ctx.release();
+        bean.destroy(reference, ctx);
         
         shutDownContainer();
         



Mime
View raw message