[weld-commits] Weld SVN: r4152 - cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Fri Oct 16 13:39:15 EDT 2009


Author: pete.muir at jboss.org
Date: 2009-10-16 13:39:15 -0400 (Fri, 16 Oct 2009)
New Revision: 4152

Modified:
   cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/DependentContextTest.java
Log:
fix test

Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/DependentContextTest.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/DependentContextTest.java	2009-10-16 17:31:46 UTC (rev 4151)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/DependentContextTest.java	2009-10-16 17:39:15 UTC (rev 4152)
@@ -106,7 +106,7 @@
    public void testInstanceUsedForDisposalMethodNotShared()
    {
       SpiderProducer spiderProducer = getInstanceByType(SpiderProducer.class);
-      Bean<Tarantula> tarantulaBean = getBeans(Tarantula.class).iterator().next();
+      Bean<Tarantula> tarantulaBean = getUniqueBean(Tarantula.class, PET_LITERAL);
       CreationalContext<Tarantula> creationalContext = getCurrentManager().createCreationalContext(tarantulaBean);
       Tarantula tarantula = tarantulaBean.create(creationalContext);
       assert tarantula != null;



More information about the weld-commits mailing list