com.github.springtestdbunit.dataset
Interface DataSetLoader

All Known Implementing Classes:
AbstractDataSetLoader, FlatXmlDataSetLoader

public interface DataSetLoader

Strategy interface for loading a dataset.

Concrete implementations must provide a public no-args constructor.

Author:
Phillip Webb
See Also:
FlatXmlDataSetLoader

Method Summary
 org.dbunit.dataset.IDataSet loadDataSet(Class<?> testClass, String location)
          Load and return dataset from the specified.
 

Method Detail

loadDataSet

org.dbunit.dataset.IDataSet loadDataSet(Class<?> testClass,
                                        String location)
                                        throws Exception
Load and return dataset from the specified. If the dataset cannot be found null may be returned.

Parameters:
testClass - The class under test
location - The location to load
Returns:
a dataset or null
Throws:
Exception - If the dataset cannot be loaded


Copyright © 2012. All Rights Reserved.