Search in sources :

Example 1 with FlatXmlDataFileLoader

use of org.dbunit.util.fileloader.FlatXmlDataFileLoader in project ORCID-Source by ORCID.

the class DBUnitTest method getDataSet.

public static IDataSet getDataSet(String flatXMLDataFile) {
    FlatXmlDataFileLoader loader = new FlatXmlDataFileLoader();
    loader.getBuilder().setColumnSensing(true);
    IDataSet ds = loader.load(flatXMLDataFile);
    return ds;
}
Also used : FlatXmlDataFileLoader(org.dbunit.util.fileloader.FlatXmlDataFileLoader) IDataSet(org.dbunit.dataset.IDataSet)

Aggregations

IDataSet (org.dbunit.dataset.IDataSet)1 FlatXmlDataFileLoader (org.dbunit.util.fileloader.FlatXmlDataFileLoader)1