Package org.dbunit.annotation
package org.dbunit.annotation
-
Annotation InterfacesClassDescriptionBinds one column to the
ValueComparerused to compare its values, nested insideDbUnitVerifyTable.columnComparers().Class-level wiring for annotation-driven dbUnit test configuration: whichDataFileLoaderloads dataset files, how to obtain a tester viaDatabaseTesterFactorywhen no field supplies one, whichPrepAndExpectedTestCaseimplementation drives the prep/expected path,DatabaseConfigproperties, and the shared table-definition catalog.Specifies the expected dataset file(s) to verify actual database state against after each test method, and (optionally) which tables and rules to verify with.Specifies the dataset file(s) to load and insert into the database before each test method, seeding the state the test needs to run.OneDatabaseConfigproperty name/value pair, nested insideDbUnitConfig.properties().Turns the row count check (seeorg.dbunit.database.rowcount.RowCountCheck) on for a class or a method, with an exclude list: before the test it snapshots every table's row count, after teardown it snapshots again, and it fails the test when any count moved.Specifies the database operation to apply before each test method, alongsideDbUnitPrepfor the dataset to apply it to.Specifies the database operation to apply after each test method.Marks a test class field, of a type implementingPrepAndExpectedTestCase, as the test case to drive: the extension configures and runs that instance instead of constructing one of its own, the "the object already exists and I want it used" case.Marks a test class field, of a type implementingIDatabaseTester, as the tester to drive - the "an instance already exists and I want it used" case, ahead of aDbUnitConfig.databaseTesterFactory()and the plain field auto-scan.Full per-table verification rules for one table, nested insideDbUnitExpected.verify(): column include/exclude filters, value comparers, and sort mode.