Package org.dbunit.util.fileloader
Class JsonDataFileLoader
java.lang.Object
org.dbunit.util.fileloader.AbstractDataFileLoader
org.dbunit.util.fileloader.JsonDataFileLoader
- All Implemented Interfaces:
DataFileLoader
DataFileLoader that loads JSON dataset files.- Since:
- 3.6.0
- Author:
- Jeff Jensen
-
Constructor Summary
ConstructorsConstructorDescriptionCreate new instance.Create new instance with replacement objects.JsonDataFileLoader(Map ro, Map rs) Create new instance with replacement objects and replacement substrings. -
Method Summary
Modifier and TypeMethodDescriptionloadDataSet(URL url) Load the specified URL file into a dbUnit dataset.Methods inherited from class org.dbunit.util.fileloader.AbstractDataFileLoader
addReplacementObjects, addReplacementSubstrings, load, processReplacementTokens, removeAllReplacementObjects, removeAllReplacementSubstrings
-
Constructor Details
-
JsonDataFileLoader
public JsonDataFileLoader()Create new instance. -
JsonDataFileLoader
Create new instance with replacement objects.- Parameters:
ro- The replacement objects for use withReplacementDataSet.
-
JsonDataFileLoader
Create new instance with replacement objects and replacement substrings.- Parameters:
ro- The replacement objects for use withReplacementDataSet.rs- The replacement substrings for use withReplacementDataSet.
-
-
Method Details
-
loadDataSet
Load the specified URL file into a dbUnit dataset. The type of dbUnit dataset created is delegated to the implementing subclass.- Parameters:
url- The dbUnit data file url.- Returns:
- dbUnit dataset of the corresponding input file type.
- Throws:
DataSetException- On data errors.IOException- On file errors.
-