[junit] Running org.apache.poi.hssf.usermodel.TestHSSFDateUtil [junit] Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 0.049 sec BUILD FAILED /var/tmp/portage/dev-java/poi-3.0.2-r1/work/poi-3.0.2-FINAL/build.xml:406: Test org.apache.poi.hssf.usermodel.TestHSSFDateUtil failed Total time: 18 seconds !!! When you file a bug report, please include the following information: GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.04" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac" and of course, the output of emerge --info
The tests probably need to be patched according to upstream changes related to the patch that we apply and upstream accepted. I'll try to find some time to fix it, though not sure whether I'll get to it during this weekend.
I run tests from ebuild and org.apache.poi.hssf.usermodel.TestHSSFDateUtil failed... But then I unpacked tarball and run "ant test": [junit] Running org.apache.poi.hssf.usermodel.TestHSSFDateUtil [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 0,971 sec It seems that this is an ebuild problem.
As I wrote above, the ebuild contains extra patch which is not part of the upstream release. The patch was accepted after the release but it is important as it fixes detection of date/time cell formats. Unfortunately also fix (patch) for org.apache.poi.hssf.usermodel.TestHSSFDateUtil is needed.
Created attachment 144145 [details, diff] patch for poi tests yyyy:mm:dd is a valid date after applying fordfrog's patch
Created attachment 144146 [details] updated ebuild
Alex, thank you for finding out where the problem is. I decided to use the patch from upstream that was created when my patch was committed to stay with the upstream. Here is upstream's patch: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java?r1=601004&r2=619382 The fix has been committed to CVS so after few hours the tests should work again.