Author: shane.bryzak(a)jboss.com
Date: 2009-10-02 21:30:20 -0400 (Fri, 02 Oct 2009)
New Revision: 3835
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/Wolf.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/WolfPack.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/InjectionTest.java
tck/trunk/impl/src/main/resources/tck-audit-cdi.xml
Log:
added another injection test
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/InjectionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/InjectionTest.java 2009-10-02
10:43:12 UTC (rev 3834)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/InjectionTest.java 2009-10-03
01:30:20 UTC (rev 3835)
@@ -21,6 +21,14 @@
assert spiderNest.numberOfSpiders != null;
assert spiderNest.numberOfSpiders.equals(4);
}
+
+ @Test
+ @SpecAssertion(section = "5.3", id = "kc")
+ public void testInjectionOfNamedBean()
+ {
+ WolfPack wolfPack = getInstanceByType(WolfPack.class);
+ assert wolfPack.getAlphaWolf() != null;
+ }
@Test
@SpecAssertion(section="4.2", id = "aa")
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/Wolf.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/Wolf.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/Wolf.java 2009-10-03
01:30:20 UTC (rev 3835)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.lookup.injection;
+
+import javax.inject.Named;
+
+@Named
+class Wolf
+{
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/WolfPack.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/WolfPack.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/WolfPack.java 2009-10-03
01:30:20 UTC (rev 3835)
@@ -0,0 +1,13 @@
+package org.jboss.jsr299.tck.tests.lookup.injection;
+
+import javax.inject.Inject;
+
+class WolfPack
+{
+ @Inject Wolf alphaWolf;
+
+ public Wolf getAlphaWolf()
+ {
+ return alphaWolf;
+ }
+}
Modified: tck/trunk/impl/src/main/resources/tck-audit-cdi.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit-cdi.xml 2009-10-02 10:43:12 UTC (rev
3834)
+++ tck/trunk/impl/src/main/resources/tck-audit-cdi.xml 2009-10-03 01:30:20 UTC (rev
3835)
@@ -1975,6 +1975,10 @@
<assertion id="kb">
<text>Test with a raw type.</text>
</assertion>
+
+ <assertion id="kc">
+ <text>Test with a |@Named| bean.</text>
+ </assertion>
</group>
<group>
Show replies by date