Interface DatabaseConfigPropertiesProvider


public interface DatabaseConfigPropertiesProvider
Supplies a shared set of DatabaseConfig properties for DbUnitConfig.propertiesProvider().

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 getDatabaseConfigProperties(). The other members of this family are DataSetPathsProvider, VerifyTableDefinitionsProvider, and DatabaseTesterFactory.

Java annotations cannot reference an object constant directly (see DbUnitConfig.propertiesProvider()), so a provider class is the mechanism for reusing one Properties instance across several test classes; DbUnitConfig.properties() remains the inline alternative for properties specific to one class or method. Setting both is rejected.

Since:
3.6.0
Author:
Jeff Jensen
See Also: