stanislav.chetvertkov
stanislav.chetvertkov

Reputation: 1640

SprigngTestDBUnit. How to ignore row order when comparing expected and actual datasets

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.

Upvotes: 2

Views: 1359

Answers (1)

stanislav.chetvertkov
stanislav.chetvertkov

Reputation: 1640

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

Upvotes: 1

Related Questions