Class RowCountCheckConfiguration

java.lang.Object
org.dbunit.database.rowcount.RowCountCheckConfiguration

public class RowCountCheckConfiguration extends Object
Resolves whether the row count check is enabled, its excluded table patterns, and the RowCounter to use, from a DatabaseConfig and the dbunit.* system property overrides.

Precedence, for both the enabled flag and the exclude patterns: the system property, when present, wins in either direction, so it can force-enable in CI and force-disable locally. Absent, resolution falls through to the DatabaseConfig value; absent there too, the enabled flag defaults to false. The exclude system property, when present, replaces rather than appends to the configured patterns.

The RowCounter has no system property override: swapping the counting implementation is a code-level decision made once for a suite, not something flipped per run.

The RowCountCheckConfiguration(DatabaseConfig) constructor is a thin adapter: it reads the three values a DatabaseConfig carries and delegates to RowCountCheckConfiguration(boolean, String[], RowCounter), which owns the system-property precedence and the defaulting. A caller that already holds the values - an annotation override, say - passes them to the second constructor directly rather than staging them through a throwaway DatabaseConfig.

Since:
3.6.0
Author:
dbunit