[seam-commits] Seam SVN: r13658 - in modules/xml/trunk/impl/src/test: java/org/jboss/seam/xml/test/simple and 1 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Aug 27 20:00:47 EDT 2010
Author: swd847
Date: 2010-08-27 20:00:46 -0400 (Fri, 27 Aug 2010)
New Revision: 13658
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/method/MethodBean.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/ExtendedBean.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java
modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/method/method-beans.xml
Log:
changes to tests
Modified: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/method/MethodBean.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/method/MethodBean.java 2010-08-27 23:22:54 UTC (rev 13657)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/method/MethodBean.java 2010-08-28 00:00:46 UTC (rev 13658)
@@ -40,10 +40,15 @@
{
return beans.length;
}
-
+
public int method(Instance<MethodValueBean> bean)
{
- return bean.get().getValue() + 1;
+ return bean.get().getValue() + 1;
}
+ public int method(Instance<MethodValueBean> bean, Instance<MethodValueBean> bean1)
+ {
+ return bean.get().getValue() + 1;
+ }
+
}
Modified: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/ExtendedBean.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/ExtendedBean.java 2010-08-27 23:22:54 UTC (rev 13657)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/ExtendedBean.java 2010-08-28 00:00:46 UTC (rev 13658)
@@ -21,8 +21,16 @@
*/
package org.jboss.seam.xml.test.simple;
+import java.util.List;
+
+import javax.enterprise.context.ApplicationScoped;
+
@ExtendedQualifier1
+ at ApplicationScoped
public class ExtendedBean
{
-
+ public List<String> getData()
+ {
+ return null;
+ }
}
Modified: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java 2010-08-27 23:22:54 UTC (rev 13657)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java 2010-08-28 00:00:46 UTC (rev 13658)
@@ -21,6 +21,7 @@
*/
package org.jboss.seam.xml.test.simple;
+import java.lang.reflect.Method;
import java.util.Set;
import javax.enterprise.inject.spi.Bean;
@@ -65,7 +66,7 @@
}
@Test
- public void testExtends()
+ public void testExtends() throws SecurityException, NoSuchMethodException
{
AnnotationLiteral<ExtendedQualifier1> e1 = new AnnotationLiteral<ExtendedQualifier1>()
{
@@ -76,6 +77,7 @@
ExtendedBean ext = getReference(ExtendedBean.class, e1, e2);
Assert.assertTrue(ext != null);
-
+ Method method = ext.getClass().getDeclaredMethod("getData");
+ method.getGenericReturnType();
}
}
Modified: modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/method/method-beans.xml
===================================================================
--- modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/method/method-beans.xml 2010-08-27 23:22:54 UTC (rev 13657)
+++ modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/method/method-beans.xml 2010-08-28 00:00:46 UTC (rev 13658)
@@ -46,6 +46,18 @@
</Instance>
</parameters>
</test:method>
+ <test:method>
+ <Produces />
+ <test:Qualifier2 />
+ <parameters>
+ <Instance>
+ <test:Qualifier2 />
+ </Instance>
+ <Instance>
+ <test:Qualifier2 />
+ </Instance>
+ </parameters>
+ </test:method>
</test:MethodBean>
<test:MethodTarget>
More information about the seam-commits
mailing list