[seam-commits] Seam SVN: r13819 - modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sat Oct 9 20:27:11 EDT 2010


Author: swd847
Date: 2010-10-09 20:27:11 -0400 (Sat, 09 Oct 2010)
New Revision: 13819

Modified:
   modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/AbstractXMLTest.java
Log:
fix minor tests bug


Modified: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/AbstractXMLTest.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/AbstractXMLTest.java	2010-10-09 22:47:06 UTC (rev 13818)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/AbstractXMLTest.java	2010-10-10 00:27:11 UTC (rev 13819)
@@ -73,8 +73,8 @@
          bs.append("]");
          throw new RuntimeException("More than one bean found with class: " + clazz + " and bindings " + bs);
       }
-      Bean bean = beans.iterator().next();
-      return (T) bean.create(manager.createCreationalContext(bean));
+      Bean<?> bean = beans.iterator().next();
+      return (T) manager.getReference(bean, clazz, manager.createCreationalContext(bean));
    }
 
 }



More information about the seam-commits mailing list