Interface DataSetExecutor

  • All Known Implementing Classes:
    DataSetExecutorImpl

    public interface DataSetExecutor
    Created by pestano on 01/08/15.
    • Method Detail

      • createDataSet

        void createDataSet​(DataSetConfig dataSetConfig)
        creates a dataset into executor's database connection using given dataSetConfig
        Parameters:
        dataSetConfig - dataset configuration
      • loadDataSet

        org.dbunit.dataset.IDataSet loadDataSet​(String name)
                                         throws org.dbunit.dataset.DataSetException,
                                                IOException
        Throws:
        org.dbunit.dataset.DataSetException
        IOException
      • loadDataSets

        org.dbunit.dataset.IDataSet loadDataSets​(String[] datasets)
                                          throws org.dbunit.dataset.DataSetException,
                                                 IOException
        Throws:
        org.dbunit.dataset.DataSetException
        IOException
      • initConnectionFromConfig

        void initConnectionFromConfig​(ConnectionConfig connectionConfig)
      • executeStatements

        void executeStatements​(String[] statements)
      • executeScript

        void executeScript​(String scriptPath)
      • getExecutorId

        String getExecutorId()
      • compareCurrentDataSetWith

        void compareCurrentDataSetWith​(DataSetConfig expected,
                                       String[] ignoreCols)
                                throws org.dbunit.DatabaseUnitException
        compares dataset from executor's database connection with a given dataset
        Parameters:
        expected - configuration
        ignoreCols - name of column to ignore
        Throws:
        org.dbunit.DatabaseUnitException - if current dataset is not equal current dataset
      • compareCurrentDataSetWith

        void compareCurrentDataSetWith​(DataSetConfig expected,
                                       String[] ignoreCols,
                                       Class<? extends Replacer>[] replacers,
                                       String[] orderBy)
                                throws org.dbunit.DatabaseUnitException
        compares dataset from executor's database connection with a given dataset
        Parameters:
        expected - configuration
        ignoreCols - name of column to ignore
        replacers - implementations of Replacer, called during reading expected dataset before comparison
        orderBy - name of columns to sort the dataset with
        Throws:
        org.dbunit.DatabaseUnitException - if current dataset is not equal current dataset
      • compareCurrentDataSetWith

        void compareCurrentDataSetWith​(DataSetConfig expected,
                                       String[] ignoreCols,
                                       Class<? extends Replacer>[] replacers,
                                       String[] orderBy,
                                       CompareOperation compareOperation)
                                throws org.dbunit.DatabaseUnitException
        compares dataset from executor's database connection with a given dataset
        Parameters:
        expected - configuration
        ignoreCols - name of column to ignore
        replacers - implementations of Replacer, called during reading expected dataset before comparison
        orderBy - name of columns to sort the dataset with
        compareOperation - dataset comparison strategy
        Throws:
        org.dbunit.DatabaseUnitException - if current dataset is not equal current dataset
      • setDBUnitConfig

        void setDBUnitConfig​(DBUnitConfig dbUnitConfig)