testSetArray() Test setting an Array property
JDK 1.3.1_04 and 1.4.2_05: Test Fails - IllegalArgumentException can't invoke setter, argument type mismatch
Fails because of a bug in BeanUtilsBean.setProperty() method.
testSetList() Test setting a List property
JDK 1.3.1_04: Test Passes
JDK 1.4.2_05: Test Fails - setter which returns java.util.List not returned
by IndexedPropertyDescriptor.getWriteMethod() - therefore
setProperty does nothing and values remain unchanged.
Test getting an array property as a String
NOTE: Why does retrieving array just return the first element in the array, whereas
retrieveing a List returns a comma separated list of all the elements?
Test getting a List property as a String
JDK 1.3.1_04: Test Passes
JDK 1.4.2_05: Test Fails - fails NoSuchMethodException, i.e. reason as testListReadMethod()
failed.
Test Read Method for a List
JDK 1.3.1_04: Test Passes
JDK 1.4.2_05: Test Fails - getter which returns java.util.List not returned
by IndexedPropertyDescriptor.getReadMethod();
Test Write Method for a List
JDK 1.3.1_04: Test Passes
JDK 1.4.2_05: Test Fails - setter whith java.util.List argument not returned
by IndexedPropertyDescriptor.getWriteMethod();
Test setting an Array property
JDK 1.3.1_04 and 1.4.2_05: Test Fails - IllegalArgumentException can't invoke setter, argument type mismatch
Fails because of a bug in BeanUtilsBean.setProperty() method. Value is always converted to the array's component
type which in this case is a String. Then it calls the setStringArray(String[]) passing a String rather than
String[] causing this exception. If there isn't an "index" value then the PropertyType (rather than
IndexedPropertyType) should be used.
Test setting a List property
JDK 1.3.1_04: Test Passes
JDK 1.4.2_05: Test Fails - setter which returns java.util.List not returned
by IndexedPropertyDescriptor.getWriteMethod() - therefore
setProperty does nothing and values remain unchanged.