Question

I'm using com.github.springtestdbunit to conduct persistence tests on my DAO layer. The problem is that i don't know in which order data will be saved to database, so i need to ignore row order when comparing expected and actual datasets. Basically it's the same issue DB Unit should ignore order of rows but i wonder how to fix it without hacking a library's @ExpectedDatabase annotation and its enum parameter DatabaseAssertionMode.

Was it helpful?

Solution

i guess it will be fixed soon with unordered assertion mode https://github.com/springtestdbunit/spring-test-dbunit/pull/48

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top