Author: pete.muir(a)jboss.org
Date: 2009-07-26 17:38:16 -0400 (Sun, 26 Jul 2009)
New Revision: 3263
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/typesafe/resolution/ResolutionByTypeTest.java
Log:
fix test
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/typesafe/resolution/ResolutionByTypeTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/typesafe/resolution/ResolutionByTypeTest.java 2009-07-26
21:33:56 UTC (rev 3262)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/typesafe/resolution/ResolutionByTypeTest.java 2009-07-26
21:38:16 UTC (rev 3263)
@@ -29,6 +29,7 @@
import org.hibernate.tck.annotations.SpecAssertion;
import org.hibernate.tck.annotations.SpecAssertions;
import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.literals.AnyLiteral;
import org.jboss.jsr299.tck.literals.CurrentLiteral;
import org.jboss.testharness.impl.packaging.Artifact;
import org.testng.annotations.Test;
@@ -142,7 +143,7 @@
assert getBeans(Spider[].class).size() == 1;
}
- @Test(groups = { "resolution", "ri-broken" })
+ @Test(groups = { "resolution" })
@SpecAssertions( {
@SpecAssertion(section = "5.3", id = "i"),
@SpecAssertion(section = "5.3.4", id = "aa"),
@@ -151,8 +152,8 @@
@SpecAssertion(section = "5.3.6", id = "c") })
public void testResolveByTypeWithPrimitives()
{
- assert getBeans(Double.class).size() == 2;
- assert getBeans(double.class).size() == 2;
+ assert getBeans(Double.class, new AnyLiteral()).size() == 2;
+ assert getBeans(double.class, new AnyLiteral()).size() == 2;
Double min = getInstanceByType(Double.class, new
AnnotationLiteral<Min>(){});
double max = getInstanceByType(double.class, new
AnnotationLiteral<Max>(){});
@@ -160,6 +161,7 @@
assert min.equals(NumberProducer.min);
assert NumberProducer.max.equals(max);
}
+
@Test(groups = "resolution")
@SpecAssertions( {
@SpecAssertion(section = "5.3", id = "le"),
Show replies by date