Author: pete.muir(a)jboss.org
Date: 2010-02-25 05:35:21 -0500 (Thu, 25 Feb 2010)
New Revision: 5961
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized1.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized2.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedProducer.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/TestBean.java
Log:
WELD-452
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized.java
===================================================================
---
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized.java
(rev 0)
+++
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized.java 2010-02-25
10:35:21 UTC (rev 5961)
@@ -0,0 +1,19 @@
+package org.jboss.weld.tests.producer.method.parameterized;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+@Qualifier
+@Retention(RUNTIME)
+@Target( { PARAMETER, METHOD, FIELD, TYPE })
+public @interface Parameterized
+{
+}
Property changes on:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized1.java
===================================================================
---
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized1.java
(rev 0)
+++
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized1.java 2010-02-25
10:35:21 UTC (rev 5961)
@@ -0,0 +1,6 @@
+package org.jboss.weld.tests.producer.method.parameterized;
+
+public class Parameterized1<T>
+{
+
+}
Property changes on:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized1.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized2.java
===================================================================
---
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized2.java
(rev 0)
+++
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized2.java 2010-02-25
10:35:21 UTC (rev 5961)
@@ -0,0 +1,6 @@
+package org.jboss.weld.tests.producer.method.parameterized;
+
+public class Parameterized2<T>
+{
+
+}
Property changes on:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/Parameterized2.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedProducer.java
===================================================================
---
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedProducer.java
(rev 0)
+++
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedProducer.java 2010-02-25
10:35:21 UTC (rev 5961)
@@ -0,0 +1,14 @@
+package org.jboss.weld.tests.producer.method.parameterized;
+
+import javax.enterprise.inject.Produces;
+
+public class ParameterizedProducer
+{
+
+ @Produces
+ @Parameterized
+ public Parameterized1<Parameterized2<Double>> getParameterized()
+ {
+ return new Parameterized1();
+ }
+}
Property changes on:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedProducer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedTest.java
===================================================================
---
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedTest.java
(rev 0)
+++
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedTest.java 2010-02-25
10:35:21 UTC (rev 5961)
@@ -0,0 +1,18 @@
+package org.jboss.weld.tests.producer.method.parameterized;
+
+import org.jboss.testharness.impl.packaging.Artifact;
+import org.jboss.weld.test.AbstractWeldTest;
+import org.testng.annotations.Test;
+
+@Artifact
+public class ParameterizedTest extends AbstractWeldTest
+{
+
+ @Test(description = "WELD-452")
+ public void testEventQualifiersCorrect()
+ {
+ TestBean testBean = getReference(TestBean.class);
+ assert testBean != null;
+ }
+
+}
Property changes on:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/ParameterizedTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/TestBean.java
===================================================================
---
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/TestBean.java
(rev 0)
+++
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/TestBean.java 2010-02-25
10:35:21 UTC (rev 5961)
@@ -0,0 +1,13 @@
+package org.jboss.weld.tests.producer.method.parameterized;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Inject;
+
+@ApplicationScoped
+public class TestBean
+{
+ @Inject
+ @Parameterized
+ Parameterized1<Parameterized2<Double>> parameterized;
+
+}
Property changes on:
core/trunk/tests/src/test/java/org/jboss/weld/tests/producer/method/parameterized/TestBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Show replies by date