Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace sequence Ids #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cachavezley
Copy link

The ExpectedDatabase annotation now contains an attribute called "replaceSequenceIds" which, if true, is used the calculate the sequence values in an expected DataSet which looks like this

<dataset>
   <MYTABLE FOO="Hello" ID="${MYTABLE_SEQ}"/>
   <MYTABLE FOO="World" ID="${MYTABLE_SEQ}"/>
   <OTHERTABLE BAR="Hello" ID="${OTHERTABLE_SEQ}"/>
   <OTHERTABLE BAR="World" ID="${OTHERTABLE_SEQ}"/>
</dataset>

@see
http://dbunit.wikidot.com/dbunitsupport

…laceSequenceIds" which, if true, is used the calculate the sequence values in an expected DataSet which looks like this

<dataset>
   <MYTABLE FOO="Hello" ID="${MYTABLE_SEQ}"/>
   <MYTABLE FOO="World" ID="${MYTABLE_SEQ}"/>
   <OTHERTABLE BAR="Hello" ID="${OTHERTABLE_SEQ}"/>
   <OTHERTABLE BAR="World" ID="${OTHERTABLE_SEQ}"/>
  </dataset>

@see
http://dbunit.wikidot.com/dbunitsupport
…laceSequenceIds" which, if true, is used the calculate the sequence values in an expected DataSet which looks like this

<dataset>
   <MYTABLE FOO="Hello" ID="${MYTABLE_SEQ}"/>
   <MYTABLE FOO="World" ID="${MYTABLE_SEQ}"/>
   <OTHERTABLE BAR="Hello" ID="${OTHERTABLE_SEQ}"/>
   <OTHERTABLE BAR="World" ID="${OTHERTABLE_SEQ}"/>
  </dataset>

@see
http://dbunit.wikidot.com/dbunitsupport
@buildhive
Copy link

springtestdbunit » spring-test-dbunit #10 SUCCESS
This pull request looks good
(what's this?)

@abudjakov
Copy link

Hi. This is a really helpful feature. When we can expect this change? would be nice to have the same for @DatabaseSetup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants