Package org.openbravo.test.modularity
Class ExecutionLimitsTest
- java.lang.Object
-
- org.openbravo.test.modularity.ExecutionLimitsTest
-
public class ExecutionLimitsTest extends Object
Test cases covering build validation and module scripts executions when updating database regarding the original version the module is being updated from.- Author:
- inigo.sanchez
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ExecutionLimitsTest.FakeBuildValidation
Fake buildValidation with version limits, it simply flags when it is executedclass
ExecutionLimitsTest.FakeModuleScript
Fake module script with version limits, it simply flags when it is executed
-
Constructor Summary
Constructors Constructor Description ExecutionLimitsTest(String moduleId, String fromVersion, String toVersion, boolean onInstall, boolean shouldExecute, org.openbravo.test.modularity.ExecutionLimitsTest.Type type, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<Object[]>
data()
void
isExecutedBasedOnVersionLimits()
Executes the buildValidation or ModuleScript with current version boundaries
-
-
-
Constructor Detail
-
ExecutionLimitsTest
public ExecutionLimitsTest(String moduleId, String fromVersion, String toVersion, boolean onInstall, boolean shouldExecute, org.openbravo.test.modularity.ExecutionLimitsTest.Type type, String description)
- Parameters:
moduleId
- UUID of the module to establish the dependency withfromVersion
- defines the first module version of the execution dependencytoVersion
- defines the last module version of the execution dependencyonInstall
- flag to indicate if the buildValidation should be executed on installshouldExecute
- flag to indicate the final result, i.e., if the buildValidation should be executed or nottype
- defines if it is a ModuleScript or BuildValidation testdescription
- description for the test case
-
-
Method Detail
-
data
public static Collection<Object[]> data()
-
isExecutedBasedOnVersionLimits
public void isExecutedBasedOnVersionLimits()
Executes the buildValidation or ModuleScript with current version boundaries
-
-