|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.dbunit.DbUnitUnitils
public class DbUnitUnitils
Class providing access to the functionality of the dbunit module using static methods. Meant to be used directly in unit tests.
| Constructor Summary | |
|---|---|
DbUnitUnitils()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbUnitUnitils()
| Method Detail |
|---|
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 null
public 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 dataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||