ConstructorUtils.invokeExactConstructor and ConstructorUtils.invokeConstructor require Object[] arrays

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983513 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-08-09 03:12:06 +00:00
parent 0aeeb4b7ac
commit 62c9043f9c
1 changed files with 4 additions and 4 deletions

View File

@ -90,9 +90,9 @@ public class ConstructorUtilsTest extends TestCase {
public void testInvokeConstructor() throws Exception {
assertEquals("()", ConstructorUtils.invokeConstructor(TestBean.class,
ArrayUtils.EMPTY_CLASS_ARRAY).toString());
(Object[]) ArrayUtils.EMPTY_CLASS_ARRAY).toString());
assertEquals("()", ConstructorUtils.invokeConstructor(TestBean.class,
(Class[]) null).toString());
(Object[]) null).toString());
assertEquals("(String)", ConstructorUtils.invokeConstructor(
TestBean.class, "").toString());
assertEquals("(Object)", ConstructorUtils.invokeConstructor(
@ -111,9 +111,9 @@ public class ConstructorUtilsTest extends TestCase {
public void testInvokeExactConstructor() throws Exception {
assertEquals("()", ConstructorUtils.invokeExactConstructor(
TestBean.class, ArrayUtils.EMPTY_CLASS_ARRAY).toString());
TestBean.class, (Object[]) ArrayUtils.EMPTY_CLASS_ARRAY).toString());
assertEquals("()", ConstructorUtils.invokeExactConstructor(
TestBean.class, (Class[]) null).toString());
TestBean.class, (Object[]) null).toString());
assertEquals("(String)", ConstructorUtils.invokeExactConstructor(
TestBean.class, "").toString());
assertEquals("(Object)", ConstructorUtils.invokeExactConstructor(