jeudi 17 janvier 2019

How to mock DB view with Spring dbunit?

I'm writing integration tests using Spring dbunit. Basically, that's fine but there's one query I need to test, but it uses a view in my db. I use @DatabaseSetup annotation for providing xml with test data set. But in this xml I can configure only rows for db tables, for views this doesn't work, of course. Does anybody know how to create a test row in db view and use in a test?

Many thanks in advance.

Aucun commentaire:

Enregistrer un commentaire