Class ExecutionLimitsTest.FakeBuildValidation

  • Enclosing class:
    ExecutionLimitsTest

    public class ExecutionLimitsTest.FakeBuildValidation
    extends BuildValidation
    Fake buildValidation with version limits, it simply flags when it is executed
    • Constructor Detail

      • FakeBuildValidation

        public FakeBuildValidation()
    • Method Detail

      • execute

        public List<String> execute()
        Description copied from class: BuildValidation
        This method must be implemented by the BuildValidations, and is used to define the actions that the script itself will take. This method will be automatically called by the BuildValidationHandler when the validation process is run (at the beginning of a rebuild, before the update.database task). This method needs to return a list of error messages. If one or more error messages are provided, the build will stop, and the messages will be shown to the user. If an empty list is provided, the validation will be considered successful, and the build will continue
        Specified by:
        execute in class BuildValidation
        Returns:
        A list of error Strings
      • getBuildValidationLimits

        public ExecutionLimits getBuildValidationLimits()
        Description copied from class: BuildValidation
        This method can be overridden by the BuildValidation subclasses, to specify the module and the limit versions to define whether the BuildValidation should be executed or not.
        Overrides:
        getBuildValidationLimits in class BuildValidation
        Returns:
        a ExecutionLimits 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.