mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 13:31:46 +00:00
added test and behaviour for calling a java method with incorrect number of arguments
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@95 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+1
@@ -33,6 +33,7 @@ public class VariableAndFunctionTests extends ExpressionTestCase {
|
||||
public void testFunctionAccess01() {
|
||||
evaluate("#reverseInt(1,2,3)", "int[3]{3,2,1}", int[].class);
|
||||
evaluate("#reverseInt('1',2,3)", "int[3]{3,2,1}", int[].class); // requires type conversion of '1' to 1
|
||||
evaluateAndCheckError("#reverseInt(1)", SpelMessages.INCORRECT_NUMBER_OF_ARGUMENTS_TO_FUNCTION, 1, 1, 3);
|
||||
}
|
||||
|
||||
public void testFunctionAccess02() {
|
||||
|
||||
Reference in New Issue
Block a user