Class ParallelizedDataManagementProvider
java.lang.Object
com.netcetera.girders.dbunit.datamanagement.DataManagementProvider
com.netcetera.girders.dbunit.datamanagement.ParallelizedDataManagementProvider
Provides data management for parallelized tests. Every data set will be loaded exactly once, then this data
management provider will not interact with the database anymore.
Using this data management provider requires that:
*- the test data for a given test case is fully contained within the data set that the
DataSetProvider
supplies for that test case, and the data for each test case is independent of the data for all other test cases - each data set is self-contained (i.e. loading any one of them on its own never produces any constraint violations)
- the union of all data sets that are loaded in parallel does not contain any constraint violations
- the
DataSetProvider
needs to provide unique names for all data sets being loaded in parallel
-
Constructor Summary
ConstructorDescription.ParallelizedDataManagementProvider
(org.dbunit.operation.DatabaseOperation updateOperation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setUpDataBase
(org.dbunit.IDatabaseTester databaseTester, DataSetProvider dataSetProvider) Sets up the database.void
Tears down the database.
-
Constructor Details
-
ParallelizedDataManagementProvider
public ParallelizedDataManagementProvider(). -
ParallelizedDataManagementProvider
public ParallelizedDataManagementProvider(org.dbunit.operation.DatabaseOperation updateOperation) - Parameters:
updateOperation
- the operation used to update the database with theupdate data set
.
-
-
Method Details
-
setUpDataBase
public void setUpDataBase(org.dbunit.IDatabaseTester databaseTester, DataSetProvider dataSetProvider) throws Exception Description copied from class:DataManagementProvider
Sets up the database.- Specified by:
setUpDataBase
in classDataManagementProvider
- Throws:
Exception
- if something goes wrong
-
tearDownDatabase
public void tearDownDatabase()Description copied from class:DataManagementProvider
Tears down the database.- Specified by:
tearDownDatabase
in classDataManagementProvider
-