Update of /cvsroot/springframework/spring/test/org/springframework/remoting/httpinvoker
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28750/test/org/springframework/remoting/httpinvoker
Modified Files:
HttpInvokerTests.java
Log Message:
fixed HTTP invoker to support resolution of multi-level primitive array classes again
Index: HttpInvokerTests.java
===================================================================
RCS file: /cvsroot/springframework/spring/test/org/springframework/remoting/httpinvoker/HttpInvokerTests.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** HttpInvokerTests.java 13 Jan 2007 19:31:20 -0000 1.6
--- HttpInvokerTests.java 19 Mar 2009 15:17:39 -0000 1.7
***************
*** 1,4 ****
/*
! * Copyright 2002-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
--- 1,4 ----
/*
! * Copyright 2002-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
***************
*** 98,101 ****
--- 98,113 ----
proxy.setStringArray(new String[] {"str1", "str2"});
assertTrue(Arrays.equals(new String[] {"str1", "str2"}, proxy.getStringArray()));
+ proxy.setSomeIntegerArray(new Integer[] {1, 2, 3});
+ assertTrue(Arrays.equals(new Integer[] {1, 2, 3}, proxy.getSomeIntegerArray()));
+ proxy.setNestedIntegerArray(new Integer[][] {{1, 2, 3}, {4, 5, 6}});
+ Integer[][] integerArray = proxy.getNestedIntegerArray();
+ assertTrue(Arrays.equals(new Integer[] {1, 2, 3}, integerArray[0]));
+ assertTrue(Arrays.equals(new Integer[] {4, 5, 6}, integerArray[1]));
+ proxy.setSomeIntArray(new int[] {1, 2, 3});
+ assertTrue(Arrays.equals(new int[] {1, 2, 3}, proxy.getSomeIntArray()));
+ proxy.setNestedIntArray(new int[][] {{1, 2, 3}, {4, 5, 6}});
+ int[][] intArray = proxy.getNestedIntArray();
+ assertTrue(Arrays.equals(new int[] {1, 2, 3}, intArray[0]));
+ assertTrue(Arrays.equals(new int[] {4, 5, 6}, intArray[1]));
try {
|