[weld-commits] Weld SVN: r5310 - cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Wed Dec 16 11:25:47 EST 2009


Author: jharting
Date: 2009-12-16 11:25:46 -0500 (Wed, 16 Dec 2009)
New Revision: 5310

Modified:
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/CustomBeanImplementationTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/IntegerBean.java
Log:
CDITCK-57

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/CustomBeanImplementationTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/CustomBeanImplementationTest.java	2009-12-16 16:22:52 UTC (rev 5309)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/CustomBeanImplementationTest.java	2009-12-16 16:25:46 UTC (rev 5310)
@@ -24,10 +24,12 @@
 import org.jboss.testharness.impl.packaging.IntegrationTest;
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
+import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
 import org.testng.annotations.Test;
 
 @Artifact
 @SpecVersion(spec="cdi", version="20091101")
+ at BeansXml("beans.xml")
 @Resources({
    @Resource(source="javax.enterprise.inject.spi.Extension", destination="WEB-INF/classes/META-INF/services/javax.enterprise.inject.spi.Extension")
 })

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/IntegerBean.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/IntegerBean.java	2009-12-16 16:22:52 UTC (rev 5309)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/IntegerBean.java	2009-12-16 16:25:46 UTC (rev 5310)
@@ -69,8 +69,10 @@
 
    public Set<Class<? extends Annotation>> getStereotypes()
    {
+      HashSet<Class<? extends Annotation>> stereotypes = new HashSet<Class<? extends Annotation>>();
+      stereotypes.add(AlternativeStereotype.class);
       getStereotypesCalled = true;
-      return Collections.emptySet();
+      return stereotypes;
    }
 
    public Set<Type> getTypes()
@@ -87,7 +89,7 @@
    public boolean isAlternative()
    {
       isAlternativeCalled = true;
-      return false;
+      return true;
    }
 
    public boolean isNullable()



More information about the weld-commits mailing list