org.unitils.dbunit.datasetfactory
Interface DataSetFactory

All Known Implementing Classes:
MultiSchemaXmlDataSetFactory

public interface DataSetFactory

Factory for creating DbUnit data sets.

Author:
Filip Neven, Tim Ducheyne

Method Summary
 MultiSchemaDataSet createDataSet(File... dataSetFiles)
          Creates a MultiSchemaDataSet using the given file.
 String getDataSetFileExtension()
           
 void init(Properties configuration, String defaultSchemaName)
          Initializes this DataSetFactory
 

Method Detail

init

void init(Properties configuration,
          String defaultSchemaName)
Initializes this DataSetFactory

Parameters:
configuration - The configuration, not null
defaultSchemaName - The name of the default schema of the test database, not null

createDataSet

MultiSchemaDataSet createDataSet(File... dataSetFiles)
Creates a MultiSchemaDataSet using the given file.

Parameters:
dataSetFiles - The dataset files, not null
Returns:
A MultiSchemaDataSet containing the datasets per schema, not null

getDataSetFileExtension

String getDataSetFileExtension()
Returns:
The extension that files which can be interpreted by this factory must have (should not start with a '.')


Copyright © 2011. All Rights Reserved.