Skip to content

Commit

Permalink
Remind user how to suppress unused overrides error
Browse files Browse the repository at this point in the history
  • Loading branch information
ed0906 committed Feb 1, 2023
1 parent b1de0b3 commit 7c49972
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ open class DatabaseTester(
dataSets.values.map { it.unused() }.forEach {
if(it.isNotEmpty()) {
val message = "There were unused overrides: $it. Could there be a typo?"
if(failOnUnusedOverrides) throw DbUnitException(message) else log.warn(message)
if(failOnUnusedOverrides) throw DbUnitException("$message \nNote: this error can be suppressed using spring property: spring.dbunit.fail_on_unused_overrides=false")
else log.warn(message)
}
}

Expand Down

0 comments on commit 7c49972

Please sign in to comment.