geirm 2002/07/24 18:35:47
Modified: src/java/org/apache/velocity/test Tag: VEL_1_3_BRANCH
IntrospectorTestCase3.java
Log:
test w/ null args
Revision Changes Path
No revision
No revision
1.1.2.4 +12 -1
jakarta-velocity/src/java/org/apache/velocity/test/Attic/IntrospectorTestCase3.java
Index: IntrospectorTestCase3.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/Attic/IntrospectorTestCase3.java,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -r1.1.2.3 -r1.1.2.4
--- IntrospectorTestCase3.java 24 Jul 2002 22:02:46 -0000 1.1.2.3
+++ IntrospectorTestCase3.java 25 Jul 2002 01:35:46 -0000 1.1.2.4
@@ -140,6 +140,17 @@
assertTrue(result.equals("lll"));
+ /*
+ * test invocation with nulls
+ */
+
+ Object [] oa = {null, new Integer(0)};
+ method = RuntimeSingleton.getIntrospector().getMethod(
+ MethodProvider.class, "lll", oa );
+ result = (String) method.invoke(mp, oa);
+
+ assertTrue(result.equals("Listl"));
+
}
public static class MethodProvider
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>