Class RuleVersioningIT

    • Constructor Detail

      • RuleVersioningIT

        public RuleVersioningIT()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRuleWithoutContent

        public void testRuleWithoutContent()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRuleAndModuleInitialVersion

        public void testRuleAndModuleInitialVersion()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRuleAndModuleChangeVersionSync

        public void testRuleAndModuleChangeVersionSync()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRuleAndModuleVersionNotChangedIfContentIsSame

        public void testRuleAndModuleVersionNotChangedIfContentIsSame()
                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRuleVersionIfNewRuleIsAdded

        public void testRuleVersionIfNewRuleIsAdded()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRuleVersionEqualsToModuleVersion

        public void testRuleVersionEqualsToModuleVersion()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldRaiseExceptionWhenTryingToSaveSourceRuleBasedRuleVersionLessThenModuleVersion

        public void shouldRaiseExceptionWhenTryingToSaveSourceRuleBasedRuleVersionLessThenModuleVersion()
                                                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldSaveManuallyCreatedRuleVersionWithoutContentValidation

        public void shouldSaveManuallyCreatedRuleVersionWithoutContentValidation()
                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • readFromResource

        protected java.lang.String readFromResource​(java.lang.String resourceName)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getRuleFromResource

        protected AbstractRuleEngineRuleModel getRuleFromResource​(java.lang.String resourceName,
                                                                  java.lang.String ruleCode,
                                                                  java.lang.String ruleUUID)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • createEmptyRule

        protected AbstractRuleEngineRuleModel createEmptyRule​(java.lang.String ruleCode,
                                                              java.lang.String ruleUUID)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException