public class DbUnitUnitils extends Object
| Constructor and Description |
|---|
DbUnitUnitils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertExpectedDataSet(File... datasetFile) |
static void |
assertExpectedDataSet(String... datasetFile) |
static void |
insertDataSet(File dataSetFile)
Inserts the test data coming from the given DbUnit dataset file,
using the default
DataSetLoadStrategy and DataSetFactory class. |
static void |
insertDataSet(File dataSetFile,
Class<? extends DataSetFactory> dataSetFactoryClass,
Class<? extends DataSetLoadStrategy> dataSetLoadStrategyClass)
Inserts the test data coming from the given DbUnit dataset file.
|
static void |
insertDataSet(String... dataSetFileNames)
Inserts the dataset consisting of the given list of files into the database
|
static void |
insertDefaultDataSet()
Inserts the default dataset for the given test class into the database
|
public static void insertDefaultDataSet()
public static void insertDataSet(String... dataSetFileNames)
dataSetFileNames - The names of the files that define the test datapublic static void insertDataSet(File dataSetFile)
DataSetLoadStrategy and DataSetFactory class.dataSetFile - The test data set, not nullpublic static void insertDataSet(File dataSetFile, Class<? extends DataSetFactory> dataSetFactoryClass, Class<? extends DataSetLoadStrategy> dataSetLoadStrategyClass)
dataSetFile - The test data set, not nulldataSetFactoryClass - The class of the factory that must be used to read this datasetdataSetLoadStrategyClass - The class of the load strategy that must be used to load this datasetpublic static void assertExpectedDataSet(File... datasetFile) throws IOException
IOExceptionpublic static void assertExpectedDataSet(String... datasetFile)
Copyright © 2016. All Rights Reserved.