Class JSONDataSet
- java.lang.Object
-
- org.dbunit.dataset.AbstractDataSet
-
- com.github.database.rider.core.api.dataset.JSONDataSet
-
- All Implemented Interfaces:
org.dbunit.dataset.IDataSet
public class JSONDataSet extends org.dbunit.dataset.AbstractDataSetDBUnit DataSet format for JSON based datasets. It is similar to the flat XML layout, but has some improvements (columns are calculated by parsing the entire dataset, not just the first row). It uses Jackson, a fast JSON processor.- Author:
- Lieven DOCLO
-
-
Constructor Summary
Constructors Constructor Description JSONDataSet(File file)Creates a JSON dataset based on a fileJSONDataSet(InputStream is)Creates a JSON dataset based on an inputstream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.dbunit.dataset.ITableIteratorcreateIterator(boolean reverse)
-
-
-
Constructor Detail
-
JSONDataSet
public JSONDataSet(File file)
Creates a JSON dataset based on a file- Parameters:
file- A JSON dataset file
-
JSONDataSet
public JSONDataSet(InputStream is)
Creates a JSON dataset based on an inputstream- Parameters:
is- An inputstream pointing to a JSON dataset
-
-