ilog.rules.dvs.rbtesting

Class IlrRBTTestReport

  • java.lang.Object
    • ilog.rules.dvs.common.output.impl.IlrTestResultImpl
      • ilog.rules.dvs.rbtesting.IlrRBTTestReport
  • All Implemented Interfaces:
    IlrStatusCapable, IlrTestResult, java.io.Serializable


    public class IlrRBTTestReport
    extends ilog.rules.dvs.common.output.impl.IlrTestResultImpl
    IlrRBTTestReport represents a report element for a given test. For rule based testing, one instance of this class is created for each test rule fired.
    Since:
    7.0
    See Also:
    Serialized Form
    • Field Detail

      • MESSAGES_BUNDLE

        public static final java.lang.String MESSAGES_BUNDLE
        Path to the resource bundle that defines the test report messages
        See Also:
        Constant Field Values
      • ERROR_MESSAGE

        public static final java.lang.String ERROR_MESSAGE
        Key of the message that signal that an exception occurred during the execution of a test
        See Also:
        Constant Field Values
      • EQUALS_FAILURE_MESSAGE_KEY

        public static final java.lang.String EQUALS_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of an equals test
        See Also:
        Constant Field Values
      • EQUALS_SUCCESS_MESSAGE_KEY

        public static final java.lang.String EQUALS_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of an equals test
        See Also:
        Constant Field Values
      • DOES_NOT_EQUAL_FAILURE_MESSAGE_KEY

        public static final java.lang.String DOES_NOT_EQUAL_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of a does not equals test
        See Also:
        Constant Field Values
      • DOES_NOT_EQUAL_SUCCESS_MESSAGE_KEY

        public static final java.lang.String DOES_NOT_EQUAL_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of a does not equals test
        See Also:
        Constant Field Values
      • IS_LOWER_THAN_FAILURE_MESSAGE_KEY

        public static final java.lang.String IS_LOWER_THAN_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of an is lower than test
        See Also:
        Constant Field Values
      • IS_LOWER_THAN_SUCCESS_MESSAGE_KEY

        public static final java.lang.String IS_LOWER_THAN_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of an is lower than test
        See Also:
        Constant Field Values
      • IS_LOWER_THAN_OR_EQUALS_FAILURE_MESSAGE_KEY

        public static final java.lang.String IS_LOWER_THAN_OR_EQUALS_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of an is lower than or equals test
        See Also:
        Constant Field Values
      • IS_LOWER_THAN_OR_EQUALS_SUCCESS_MESSAGE_KEY

        public static final java.lang.String IS_LOWER_THAN_OR_EQUALS_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of an is lower than or equals test
        See Also:
        Constant Field Values
      • IS_GREATER_THAN_FAILURE_MESSAGE_KEY

        public static final java.lang.String IS_GREATER_THAN_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of an is greater than test
        See Also:
        Constant Field Values
      • IS_GREATER_THAN_SUCCESS_MESSAGE_KEY

        public static final java.lang.String IS_GREATER_THAN_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of an is greater than test
        See Also:
        Constant Field Values
      • IS_GREATER_THAN_OR_EQUALS_FAILURE_MESSAGE_KEY

        public static final java.lang.String IS_GREATER_THAN_OR_EQUALS_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of an is greater than or equals test
        See Also:
        Constant Field Values
      • IS_GREATER_THAN_OR_EQUALS_SUCCESS_MESSAGE_KEY

        public static final java.lang.String IS_GREATER_THAN_OR_EQUALS_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of an is greater than or equals test
        See Also:
        Constant Field Values
      • CONTAINS_FAILURE_MESSAGE_KEY

        public static final java.lang.String CONTAINS_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of a contains test
        See Also:
        Constant Field Values
      • CONTAINS_SUCCESS_MESSAGE_KEY

        public static final java.lang.String CONTAINS_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of a contains test
        See Also:
        Constant Field Values
      • DOES_NOT_CONTAIN_FAILURE_MESSAGE_KEY

        public static final java.lang.String DOES_NOT_CONTAIN_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of a does not contain test
        See Also:
        Constant Field Values
      • DOES_NOT_CONTAIN_SUCCESS_MESSAGE_KEY

        public static final java.lang.String DOES_NOT_CONTAIN_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of a does not contain test
        See Also:
        Constant Field Values
      • COLLECTION_EQUALS_UNORDERED_FAILURE_MESSAGE_KEY

        public static final java.lang.String COLLECTION_EQUALS_UNORDERED_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of an equals unordered test on a collection
        See Also:
        Constant Field Values
      • COLLECTION_EQUALS_UNORDERED_SUCCESS_MESSAGE_KEY

        public static final java.lang.String COLLECTION_EQUALS_UNORDERED_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of an equals unordered test on a collection
        See Also:
        Constant Field Values
      • COLLECTION_EQUALS_ORDERED_FAILURE_MESSAGE_KEY

        public static final java.lang.String COLLECTION_EQUALS_ORDERED_FAILURE_MESSAGE_KEY
        Key of the message that signals the failure of an equals ordered test on a collection
        See Also:
        Constant Field Values
      • COLLECTION_EQUALS_ORDERED_SUCCESS_MESSAGE_KEY

        public static final java.lang.String COLLECTION_EQUALS_ORDERED_SUCCESS_MESSAGE_KEY
        Key of the message that signals the success of an equals ordered test on a collection
        See Also:
        Constant Field Values
    • Constructor Detail

      • IlrRBTTestReport

        protected IlrRBTTestReport(java.lang.String theTestName,
                        java.lang.String theMessageKey,
                        java.lang.Object[] theMessageParameters,
                        IlrTestStatus theStatus,
                        java.lang.String theLocale)
        Create a test report element.
        Parameters:
        theTestName - The name of the test.
        theMessageKey - The message key.
        theMessageParameters - The message parameters.
        theStatus - The test status.
        theLocale - The locale for the message in the following format: [language][_COUNTRY[_variant]]. The tokens between the brackets [] are optional.
      • IlrRBTTestReport

        protected IlrRBTTestReport(java.lang.String theTestName,
                        java.lang.String theMessageKey,
                        java.lang.Object[] theMessageParameters,
                        IlrTestStatus theStatus,
                        java.lang.Throwable theCause,
                        java.lang.String theLocale)
        Creates a test report element.
        Parameters:
        theTestName - The name of the test.
        theMessageKey - The message key.
        theMessageParameters - The message parameters.
        theStatus - The test status.
        theCause - The cause of the error.
        theLocale - The locale for the message in the following format: [language][_COUNTRY[_variant]]. The tokens between the brackets [] are optional.
    • Method Detail

      • createFailure

        public static IlrRBTTestReport createFailure(java.lang.String testName,
                                     java.lang.String messageKey,
                                     java.lang.Object[] messageParameters,
                                     java.lang.String messageLocale)
        A factory method that creates failure elements
        Parameters:
        testName - The name of the test.
        messageKey - The message key.
        messageParameters - The message parameters.
        messageLocale - The locale for the message in the following format: [language][_COUNTRY[_variant]]. The tokens between the brackets [] are optional.
        Returns:
        A new failure test report.
      • createSuccess

        public static IlrRBTTestReport createSuccess(java.lang.String testName,
                                     java.lang.String messageKey,
                                     java.lang.Object[] messageParameters,
                                     java.lang.String messageLocale)
        A factory method that creates success elements.
        Parameters:
        testName - The name of the test.
        messageKey - The message key.
        messageParameters - The message parameters.
        messageLocale - The locale for the message in the following format: [language][_COUNTRY[_variant]]. The tokens between the brackets [] are optional.
        Returns:
        A new success test report.
      • createError

        public static IlrRBTTestReport createError(java.lang.String testName,
                                   java.lang.String messageKey,
                                   java.lang.Object[] messageParameters,
                                   java.lang.String messageLocale,
                                   java.lang.Throwable error)
        A factory method that creates error elements.
        Parameters:
        testName - The name of the test.
        messageKey - The message key.
        messageParameters - The message parameters.
        messageLocale - The locale for the message in the following format: [language][_COUNTRY[_variant]]. The tokens between the brackets [] are optional.
        error - The error.
        Returns:
        A new error test report.

© Copyright IBM Corp. 1987, 2017