Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How can I ignore the comparison of some columns using ExpectedDataSet annotation?
ExpectedDataSet
dbunit
在使用 spring-test-dbunit 的 spring 中,您可以编写:
@ExpectedDatabase(value="yourdataset.xml", assertionMode=DatabaseAssertionMode.NON_STRICT)
并省略“yourdataset.xml”上的列
参考:http ://springtestdbunit.github.io/spring-test-dbunit/