Package org.dbunit.database
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:
-
Method Summary
-
Method Details
-
getDatabaseConfigProperties
Properties getDatabaseConfigProperties()Returns the properties to apply to the test'sDatabaseConfig.- Returns:
- The properties, in the form accepted by
DatabaseConfig.setPropertiesByString(Properties).
-