springtestdbunit / spring-test-dbunit

Integration between the Spring testing framework and DBUnit
http://springtestdbunit.github.com/spring-test-dbunit/
Apache License 2.0
475 stars 238 forks source link

Issue 65 - DatabaseAssertionMode.NON_STRICT won't work if the expected data set includes its dtd file #71

Closed mzagar closed 8 years ago

mzagar commented 9 years ago

This is a proposal for ISSUE-65 - failing to use non-strict DatabaseAssertionModes when XML includes DTD.

I added ExpectedDatabase.columnFilters() attribute which enables one to specify set of dbunit IColumnFilter-s to be used to explicitly control which columns get ignored when using any of non-strict DatabaseAssertionModes.

To ignore columns based on provided IColumnFilters I used DbUnit column filter feature described here: http://dbunit.sourceforge.net/faq.html#columnfilter.

Usage example can be seen in ExpectedNonStrictWithDtdTest.

Please let me know what you think, any suggestions are most welcome.

buildhive commented 9 years ago

springtestdbunit » spring-test-dbunit #61 FAILURE Looks like there's a problem with this pull request (what's this?)

buildhive commented 9 years ago

springtestdbunit » spring-test-dbunit #62 FAILURE Looks like there's a problem with this pull request (what's this?)