rmpestano / dbunit-rules

https://github.com/database-rider/database-rider
15 stars 5 forks source link

Disable constraints before clearing database #35

Closed rmpestano closed 8 years ago

rmpestano commented 8 years ago

Not possible in a consistent/easy way and also can't know in advance if constraints aren't already disabled (e.g disable=true on @DataSet) in order to keep them disabled after database is cleared.

Use @DataSet(cleanBefore=true, disableConstraints=true) to achieve this.