ilog.rules.dvs.rbtesting

Class IlrRBTPlaceholdersStatus

  • java.lang.Object
    • ilog.rules.dvs.rbtesting.IlrRBTPlaceholdersStatus


  • public class IlrRBTPlaceholdersStatus
    extends java.lang.Object
    Holds the status of the placeholders, that is, the expected values for a test execution.
    Since:
    7.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrRBTPlaceholdersStatus(java.util.Map<java.lang.String,java.lang.Boolean> theStatusMap)
      Creates a new IlrRBTPlaceholdersStatus instance.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object getAnObjectIfValueIsDefinedForPlaceholder(java.lang.String theNameOfThePlaceholder)
      Returns an object if a value is defined for a placeholder.
      boolean isValueDefinedForPlaceholder(java.lang.String theNameOfThePlaceholder)
      Tests if a value is defined for a placeholder.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrRBTPlaceholdersStatus

        public IlrRBTPlaceholdersStatus(java.util.Map<java.lang.String,java.lang.Boolean> theStatusMap)
        Creates a new IlrRBTPlaceholdersStatus instance.
        Parameters:
        theStatusMap - A map that defines the status of each placeholder. The key is the placeholder name. If the value is set to true, it means that a value is defined for the placeholder.
    • Method Detail

      • isValueDefinedForPlaceholder

        public boolean isValueDefinedForPlaceholder(java.lang.String theNameOfThePlaceholder)
        Tests if a value is defined for a placeholder. If a value is defined for a placeholder, the input parameter of the test ruleset has a meaningful value. If not, the value of the input parameter must be ignored.
        Returns:
        true if a value is defined for a placeholder.
      • getAnObjectIfValueIsDefinedForPlaceholder

        public java.lang.Object getAnObjectIfValueIsDefinedForPlaceholder(java.lang.String theNameOfThePlaceholder)
        Returns an object if a value is defined for a placeholder. Use this method to skip rules in rule based testing (RBT).
        Parameters:
        theNameOfThePlaceholder - The name of the placeholder.
        Returns:
        An object if a value is defined for the placeholder. If no value is defined, null is returned.

© Copyright IBM Corp. 1987, 2017