You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fronts the row count check feature delivered in #939 with a declarative annotation,
following the same class/method precedence as the rest of the #753 annotation family.
Ask
Add @DbUnitRowCountCheck, a class- and method-level annotation that enables or
disables the row count check (#939) and configures its exclude list, without
touching DatabaseConfig directly:
enabled (default true when the annotation is present) turns the check on for
the annotated scope, overriding whatever DatabaseConfig.FEATURE_ROW_COUNT_CHECK
or the dbunit.rowCountCheck.enabled system property says.
Wires into DbUnitExtension (JUnit 5/6): captures the row-count baseline in beforeTestExecution(), verifies it in afterTestExecution(), and skips the verify
when the test itself already failed so the check never masks the real failure.
Notes
Depends on #939 (the row count check feature itself) and #753 (the annotation
vocabulary and execution model this plugs into).
Fronts the row count check feature delivered in #939 with a declarative annotation,
following the same class/method precedence as the rest of the #753 annotation family.
Ask
Add
@DbUnitRowCountCheck, a class- and method-level annotation that enables ordisables the row count check (#939) and configures its exclude list, without
touching
DatabaseConfigdirectly:enabled(defaulttruewhen the annotation is present) turns the check on forthe annotated scope, overriding whatever
DatabaseConfig.FEATURE_ROW_COUNT_CHECKor the
dbunit.rowCountCheck.enabledsystem property says.excludesets the table-name exclude patterns for that scope, replacing (notmerging with) any class-level
excludewhen declared at the method level - methodoverrides class the same way the rest of the Add dbUnit annotations for declarative test setup, verification, and configuration #753 family works.
DatabaseConfig/system-property precedence untouched.Wires into
DbUnitExtension(JUnit 5/6): captures the row-count baseline inbeforeTestExecution(), verifies it inafterTestExecution(), and skips the verifywhen the test itself already failed so the check never masks the real failure.
Notes
Depends on #939 (the row count check feature itself) and #753 (the annotation
vocabulary and execution model this plugs into).