Class ExecutionLimitsTest.FakeModuleScript

  • Enclosing class:
    ExecutionLimitsTest

    public class ExecutionLimitsTest.FakeModuleScript
    extends ModuleScript
    Fake module script with version limits, it simply flags when it is executed
    • Constructor Detail

      • FakeModuleScript

        public FakeModuleScript()
    • Method Detail

      • execute

        public void execute()
        Description copied from class: ModuleScript
        This method must be implemented by the ModuleScripts, and is used to define the actions that the script itself will take. This method will be automatically called by the ModuleScriptHandler when the update.database task is being executed
        Specified by:
        execute in class ModuleScript
      • getModuleScriptExecutionLimits

        public ModuleScriptExecutionLimits getModuleScriptExecutionLimits()
        Description copied from class: ModuleScript
        This method can be overridden by the ModuleScript subclasses, to specify the module and the limit versions to define whether the ModuleScript should be executed or not.
        Overrides:
        getModuleScriptExecutionLimits in class ModuleScript
        Returns:
        a ModuleScriptExecutionLimits object which contains the dependent module id and the first and last versions of the module that define the execution logic.
      • executeOnInstall

        public boolean executeOnInstall()
        Description copied from class: ExecutionLimitBaseProcess
        This method can be overridden by the subclasses of this class, to specify if they should be executed when installing the dependent module.
        Overrides:
        executeOnInstall in class ExecutionLimitBaseProcess
        Returns:
        a boolean that indicates if they should be executed when installing the dependent module.