ilog.rules.dvs.rbtesting.rules

Interface IlrTestRuleFactory



  • public interface IlrTestRuleFactory
    Factory class that creates rules for testing a ruleset.
    Since:
    7.0
    • Method Detail

      • createTestRuleForRulesetParameter

        @Deprecated
        IlrTestRule createTestRuleForRulesetParameter(java.lang.String thePathToTheParameterAttributeToTest,
                                                               IlrTestRuleFactory.PlaceholderNamesProvider thePlaceholderNamesProvider)
        Deprecated. use createTestRuleForRulesetParameter(IlrExpectedResultsCondition, PlaceholderNamesProvider) with operator EQUALS in the IlrExpectedResultsCondition parameter.
        Creates a test rule for an output parameter of the ruleset or one of its attributes.
        Parameters:
        thePathToTheParameterAttributeToTest - The path to the attribute to test. The first element of the path is the name of an output parameter of the ruleset. Example: to test the attribute zipCode of the attribute address of the output parameter customer, the path is customer.address.zipCode.
        thePlaceholderNamesProvider - The instance that provides names for the test rule placeholders.
      • createTestRuleForRulesetParameter

        IlrTestRule createTestRuleForRulesetParameter(IlrExpectedResultsCondition theTestOnTheParameterAttribute,
                                                    IlrTestRuleFactory.PlaceholderNamesProvider thePlaceholderNamesProvider)
        Creates a test rule for an output parameter of the ruleset or one of its attributes.
        Since:
        7.1
        Parameters:
        theTestOnTheParameterAttribute - The path to the attribute to test and the test operator. The first element of the path is the name of an output parameter of the ruleset. Example: to test the attribute zipCode of the attribute address of the output parameter customer, the path is customer.address.zipCode.
        thePlaceholderNamesProvider - The instance that provides names for the test rule placeholders.
      • createTestRuleForExecutionDetail

        IlrTestRule createTestRuleForExecutionDetail(IlrExecutionDetailsCondition theTestOnExecutionDetails,
                                                   IlrTestRuleFactory.PlaceholderNamesProvider thePlaceholderNamesProvider)
        Creates a test rule for an execution detail.
        Parameters:
        theTestOnExecutionDetails - The execution details and the test operator.
        thePlaceholderNamesProvider - The instance that provides names for the test rule placeholders.
      • createTestRulesForRulesetParameter

        @Deprecated
        java.util.List<IlrTestRule> createTestRulesForRulesetParameter(java.util.List<java.lang.String> thePathsToTheParametersAttributesToTest,
                                                                                IlrTestRuleFactory.PlaceholderNamesProvider thePlaceholderNamesProvider,
                                                                                java.util.List<ilog.rules.res.util.IlrCommandExecutionReport> theWarningsAndErrorsReport)
        Deprecated. Use createTestRuleForRulesetParameter(String, PlaceholderNamesProvider) using the test operator EQUALS for each path.
        Creates a list of test rules for a list of output parameter attributes of the ruleset.
        Parameters:
        thePathsToTheParametersAttributesToTest - The list of paths to the attributes to test. The first element of each path is the name of an output parameter of the ruleset. Example: to test the attribute zipCode of the attribute address of the output parameter customer, the path is customer.address.zipCode.
        thePlaceholderNamesProvider - The instance that provides names for the test rule placeholders.
        theWarningsAndErrorsReport - A non null list that will be completed by execution reports for each path for which the generation of the rule succeeds with a warning or fails because of an error. The user data section of the command execution report will contain the path for which the warning or error occurred.
        Returns:
        A list of test rules, one for each attribute to test, in the same order as the attributes in thePathsToTheParametersAttributesToTest.
      • createTestRulesForRulesetParameters

        java.util.List<IlrTestRule> createTestRulesForRulesetParameters(java.util.List<IlrExpectedResultsCondition> theTestsOnTheParametersAttributes,
                                                                      IlrTestRuleFactory.PlaceholderNamesProvider thePlaceholderNamesProvider,
                                                                      java.util.List<ilog.rules.res.util.IlrCommandExecutionReport> theWarningsAndErrorsReport)
        Creates a list of test rules for a list of output parameter attributes of the ruleset.
        Since:
        7.1
        Parameters:
        theTestsOnTheParametersAttributes - The list of paths to the attributes to test, associated with their test operator. The first element of each path is the name of an output parameter of the ruleset. Example: to test the attribute zipCode of the attribute address of the output parameter customer, the path is customer.address.zipCode.
        thePlaceholderNamesProvider - The instance that provides names for the test rule placeholders.
        theWarningsAndErrorsReport - A non null list that will be completed by execution reports for each path for which the generation of the rule succeeds with a warning of fails because of an error. The user data section of the command execution report will contain the IlrExpectedResultsCondition for which the warning or error occurred.
        Returns:
        A list of test rules, one for each attribute to test, in the same order as the attributes in thePathsToTheParametersAttributesToTest.
      • createTestRulesForExecutionDetails

        java.util.List<IlrTestRule> createTestRulesForExecutionDetails(java.util.List<IlrExecutionDetailsCondition> theTestOnExecutionDetails,
                                                                     IlrTestRuleFactory.PlaceholderNamesProvider thePlaceholderNamesProvider,
                                                                     java.util.List<ilog.rules.res.util.IlrCommandExecutionReport> theWarningsAndErrorsReport)
        Creates a list of test rules for a list of execution details.
        Parameters:
        theTestOnExecutionDetails - A list of execution details associated with their test operator.
        thePlaceholderNamesProvider - The instance that provides names for the test rule placeholders.
        theWarningsAndErrorsReport - A non null list that will be completed by execution reports for each execution details condition for which the generation of the rule succeeds with a warning of fails because of an error.
        Returns:
        A list of test rules, one for each execution details condition, in the same order as the conditions in theTestOnExecutionDetails.

© Copyright IBM Corp. 1987, 2017