Package org.dbunit

Interface DatabaseTesterFactory


public interface DatabaseTesterFactory
Produces a configured IDatabaseTester for org.dbunit.annotation.DbUnitConfig#databaseTesterFactory().

An org.dbunit.annotation provider or factory class: it is named on an annotation attribute by Class, instantiated once through its own public no-arg constructor, and asked for its one value - here getDatabaseTester(). The other members of this family are DataSetPathsProvider, DatabaseConfigPropertiesProvider, and VerifyTableDefinitionsProvider. A factory rather than a bare provider because IDatabaseTester implementations have no uniform no-arg constructor - JdbcDatabaseTester needs a driver and URL, DataSourceDatabaseTester a DataSource, JndiDatabaseTester a lookup name.

This is a general dbUnit concept, not specific to annotation-driven configuration, so it lives beside IDatabaseTester rather than in the annotation package.

Since:
3.6.0
Author:
Jeff Jensen
See Also: