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

Use dynamic queries in @ExpectedDatabase #101

Closed jonsimon closed 8 years ago

jonsimon commented 8 years ago

I would love to use a dynamic query for the query property in @ExpectedDatabase. For example, a query with parameters that gets filled in before afterTestMethod is called.

It is my impression that the query has to be fully defined when using @ExpectedDatabase annotation.

Is there a way to do that now? If not, would like to recommend this as an enhancement.

philwebb commented 8 years ago

There's not currently any way to do this. If you've got any ideas on how to implement this I'd be happy to look at a pull-request. Unfortunately, I have so little time at the moment that I won't be able to implement this myself.