Class ParallelizedDataManagementProvider

java.lang.Object
com.netcetera.girders.dbunit.datamanagement.DataManagementProvider
com.netcetera.girders.dbunit.datamanagement.ParallelizedDataManagementProvider

public class ParallelizedDataManagementProvider extends DataManagementProvider
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 Details

    • ParallelizedDataManagementProvider

      public ParallelizedDataManagementProvider()
      .
    • ParallelizedDataManagementProvider

      public ParallelizedDataManagementProvider(org.dbunit.operation.DatabaseOperation updateOperation)
      Parameters:
      updateOperation - the operation used to update the database with the update data set.
  • Method Details