Author: lfryc(a)redhat.com
Date: 2010-11-17 06:11:48 -0500 (Wed, 17 Nov 2010)
New Revision: 20071
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/MatrixConfigurator.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/annotations/Use.java
Log:
added support for booleans in @Use and MatrixConfigurator
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/MatrixConfigurator.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/MatrixConfigurator.java 2010-11-17
10:21:03 UTC (rev 20070)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/MatrixConfigurator.java 2010-11-17
11:11:48 UTC (rev 20071)
@@ -322,6 +322,12 @@
return Arrays.asList(useAnnotation.strings());
}
}
+
+ if (useAnnotation.booleans().length > 0) {
+ if (parameterType == boolean.class || parameterType == Boolean.class) {
+ return Arrays.asList(ArrayUtils.toObject(useAnnotation.booleans()));
+ }
+ }
// tries satisfy parameter from fields
List<Object> result = new LinkedList<Object>();
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/annotations/Use.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/annotations/Use.java 2010-11-17
10:21:03 UTC (rev 20070)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/annotations/Use.java 2010-11-17
11:11:48 UTC (rev 20071)
@@ -38,6 +38,8 @@
String[] value() default {};
String[] strings() default {};
+
+ boolean[] booleans() default {};
int[] ints() default {};
Show replies by date