最新バージョン2.4.8でDbUnitを使用していますが、ユニットテストで次のメッセージとともに多くの警告が表示されます。
WARN : org.dbunit.dataset.AbstractTableMetaData -
Potential problem found: The configured data type factory
'class org.dbunit.dataset.datatype.DefaultDataTypeFactory'
might cause problems with the current database 'MySQL' (e.g. some datatypes may
not be supported properly). In rare cases you might see this message because the
list of supported database products is incomplete (list=[derby]). If so please
request a java-class update via the forums.If you are using your own
IDataTypeFactory extending DefaultDataTypeFactory, ensure that you override
getValidDbProducts() to specify the supported database products.
だから私はこれを追加すると思いました(私はMySQLデータベースを使用しています):
protected void setUpDatabaseConfig(DatabaseConfig config) {
config.setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY, new MySqlDataTypeFactory());
}
しかし、これはこれらの警告を回避するのに役立ちません。ここで何が問題になっていますか?
よろしくお願いします。ティム。