[seam-commits] Seam SVN: r12831 - in modules/xml/trunk/impl/src/test: resources/org/jboss/seam/xml/test/simple and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed May 26 18:29:28 EDT 2010
Author: swd847
Date: 2010-05-26 18:29:28 -0400 (Wed, 26 May 2010)
New Revision: 12831
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/Bean3.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java
modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/simple/simple-beans.xml
Log:
bug fix
Modified: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/Bean3.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/Bean3.java 2010-05-26 22:06:11 UTC (rev 12830)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/Bean3.java 2010-05-26 22:29:28 UTC (rev 12831)
@@ -21,6 +21,9 @@
*/
package org.jboss.seam.xml.test.simple;
+import org.jboss.weld.extensions.core.Veto;
+
+ at Veto
public class Bean3
{
Modified: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java 2010-05-26 22:06:11 UTC (rev 12830)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java 2010-05-26 22:29:28 UTC (rev 12831)
@@ -27,7 +27,6 @@
import javax.enterprise.util.AnnotationLiteral;
import org.jboss.seam.xml.test.AbstractXMLTest;
-import org.jboss.weld.environment.se.util.WeldManagerUtils;
import org.testng.annotations.Test;
/**
@@ -45,11 +44,11 @@
@Test
public void simpleBeanTest()
{
- Bean1 x = WeldManagerUtils.getInstanceByType(manager, Bean1.class);
+ Bean1 x = getReference(Bean1.class);
assert x != null;
assert x.bean2 != null;
- Bean3 y = WeldManagerUtils.getInstanceByType(manager, Bean3.class);
+ Bean3 y = getReference(Bean3.class);
assert y != null;
assert x.value == 1 : "Post construct method not called";
}
Modified: modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/simple/simple-beans.xml
===================================================================
--- modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/simple/simple-beans.xml 2010-05-26 22:06:11 UTC (rev 12830)
+++ modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/simple/simple-beans.xml 2010-05-26 22:29:28 UTC (rev 12831)
@@ -3,8 +3,8 @@
xmlns:test="urn:java:org.jboss.seam.xml.test.simple">
-
<test:Bean1>
+ <overrides/>
<test:bean2>
<Inject/>
</test:bean2>
More information about the seam-commits
mailing list