Class DataSetTest


  • public abstract class DataSetTest
    extends Object
    Author:
    Yohann Chastagnier
    • Field Detail

      • NO_INITIALIZATION

        protected static final Object NO_INITIALIZATION
        Constant the getDbSetupInitializations() should return if there is no database initialization.
    • Constructor Detail

      • DataSetTest

        public DataSetTest()
    • Method Detail

      • getDbSetupTableCreationSqlScript

        protected String getDbSetupTableCreationSqlScript()
        Gets the path of sql script that contains the creation of the tables.
        Returns:
        a string that represents a path.
      • getDbSetupInitializations

        protected abstract <T> T getDbSetupInitializations()
        Gets the necessary to initialize the data into the database.
        If null, then the database isn't set up with some data.
        Type Parameters:
        T - Operation, array of Operation, String or array of String.
        Returns:
        Must return an Operation, an array of Operation, a dataset path or an array of dataset path (.sql or .xml), otherwise an exception is thrown during the database loading. Can be null to indicate no initialization.