You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Jan Brinkmann <lu...@the-luckyduck.de> on 2004/12/18 23:25:45 UTC
commons-beanutils-1.6.1 fails with junit test
Hi,
I'm currently trying to figure out why the commons-beanutils 1.6.1
release fails while doing junit tests. Maybe someone on this list
can help me. See the following output:
What can I do to fix this?
compile.tests:
[javac] Compiling 42 source files to /var/tmp/portage/commons-beanutils-1.6.1-r1/work/commons-beanutils-1.6.1-src/target/tests
[javac] /var/tmp/portage/commons-beanutils-1.6.1-r1/work/commons-beanutils-1.6.1-src/src/test/org/apache/commons/beanutils/PropertyUtilsTestCase.java:1694: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] value = reader.invoke(beanPrivate, new Class[0]);
[javac] ^
[javac] /var/tmp/portage/commons-beanutils-1.6.1-r1/work/commons-beanutils-1.6.1-src/src/test/org/apache/commons/beanutils/PropertyUtilsTestCase.java:3453: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] reader.invoke(bean, new Class[0]);
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 warnings
test.basic.dynabean:
[echo] Running BasicDynaBean tests ...
[java] ...................................
[java] Time: 0.113
[java] OK (35 tests)
test.wrap.dynabean:
[echo] Running WrapDynaBean tests ...
[java] ...................................
[java] Time: 0.081
[java] OK (35 tests)
test.dyna.property:
[echo] Running DynaBean PropertyUtils tests ...
[java] .........................................
[java] ..............
[java] Time: 0.117
[java] OK (55 tests)
test.property:
[echo] Running PropertyUtils tests ...
[java] .........................................
[java] .........................................
[java] ......
[java] Time: 0.223
[java] OK (88 tests)
test.dyna.bean:
[echo] Running DynaBean BeanUtils tests ...
[java] ..........................
[java] Time: 0.148
[java] OK (26 tests)
test.bean:
[echo] Running BeanUtils tests ...
[java] ..................................
[java] Time: 0.162
[java] OK (34 tests)
test.convert:
[echo] Running ConvertUtils tests ...
[java] .........
[java] Time: 0.103
[java] OK (9 tests)
test.method:
[echo] Running MethodUtils tests ...
[java] ........
[java] Time: 0.053
[java] OK (8 tests)
test.dyna.result:
[echo] Running DynaBean ResultSet tests ...
[java] ......
[java] Time: 0.032
[java] OK (6 tests)
test.dyna.row:
[echo] Running DynaBean RowSet tests ...
[java] ......
[java] Time: 0.041
[java] OK (6 tests)
test.bean.comparator:
[echo] Running BeanComparator tests ...
[java] .......F.
[java] Time: 0.079
[java] There was 1 failure:
[java] 1) testCompareOnBooleanProperty(org.apache.commons.beanutils.BeanComparatorTestCase)junit.framework.AssertionFailedError: BeanComparator should throw an exception when comparing two booleans.
[java] at org.apache.commons.beanutils.BeanComparatorTestCase.testCompareOnBooleanProperty(BeanComparatorTestCase.java:260)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] FAILURES!!!
[java] Tests run: 8, Failures: 1, Errors: 0
BUILD FAILED
/var/tmp/portage/commons-beanutils-1.6.1-r1/work/commons-beanutils-1.6.1-src/build.xml:424: Java returned: 1
Total time: 9 seconds
Any ideas ?
-- Jan