Author: jharting
Date: 2009-12-16 11:22:52 -0500 (Wed, 16 Dec 2009)
New Revision: 5309
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/CustomBeanImplementationTest.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/IntegerBean.java
Log:
CDITCK-57
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/CustomBeanImplementationTest.java
===================================================================
---
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/CustomBeanImplementationTest.java 2009-12-16
15:59:30 UTC (rev 5308)
+++
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/CustomBeanImplementationTest.java 2009-12-16
16:22:52 UTC (rev 5309)
@@ -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")
+(a)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/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/IntegerBean.java
===================================================================
---
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/IntegerBean.java 2009-12-16
15:59:30 UTC (rev 5308)
+++
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/bean/custom/IntegerBean.java 2009-12-16
16:22:52 UTC (rev 5309)
@@ -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()