The current Distribution of DBUnit is incompatible with POI Version 3.5-FINAL causing the following Error
java.lang.NoSuchMethodError:
org.apache.poi.hssf.usermodel.HSSFDateUtil.isCellDateFormatted(Lorg/apache/poi/hssf/usermodel/HSSFCell;)Z
at org.dbunit.dataset.excel.XlsTable.getValue(XlsTable.java:153)
at
org.dbunit.operation.AbstractBatchOperation.isEmpty(AbstractBatchOperation.java:77)
at
org.dbunit.operation.AbstractBatchOperation.execute(AbstractBatchOperation.java:135)
at
com.carlson.cwt.test.db.HsqlDbSqlFileLoader.importXlsDataSet(HsqlDbSqlFileLoader.java:166)
Fixed in svn:1132.
I've reopened this ticket and reverted the previous changes, because POI-3.5 is not compatible with Java 1.4, required for the DbUnit "official" profile build. This needs to be resolved before we can include a POI-3.5 dependency.
Perhaps we should put reflection code in here to get this working in the meantime, until we get to DbUnit 3.0 with Java 5 support.
John, if we continue to build with Java 6 now, you happy to move forward with this?
See also 3147832.
Completed as pull request 6.