Interface DataSetPathsProvider


public interface DataSetPathsProvider
Supplies a shared list of dataset classpath resource paths for DbUnitPrep.provider() or DbUnitExpected.provider().

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

Java annotations cannot reference a String[] constant directly (see DbUnitPrep.value()), so a provider class is the mechanism for reusing one path list across several test classes; DbUnitPrep.value()/DbUnitExpected.value() remain the inline alternative. Setting both is rejected.

Since:
3.6.0
Author:
Jeff Jensen
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the dataset classpath resource paths to load.