Вопрос

How can I ignore the comparison of some columns using ExpectedDataSet annotation?

  • I use dbunit API.
Это было полезно?

Решение

In spring using spring-test-dbunit, you can write:

@ExpectedDatabase(value="yourdataset.xml", assertionMode=DatabaseAssertionMode.NON_STRICT)

and omit the columns on "yourdataset.xml"

ref: http://springtestdbunit.github.io/spring-test-dbunit/

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top