标签: java spring dbunit
如何使用ExpectedDataSet注释忽略某些列的比较?
ExpectedDataSet
dbunit
答案 0 :(得分:6)
在使用spring-test-dbunit的spring中,你可以写:
@ExpectedDatabase(value =" yourdataset.xml",assertionMode = DatabaseAssertionMode.NON_STRICT)
并省略" yourdataset.xml"
参考:http://springtestdbunit.github.io/spring-test-dbunit/