Class TestReportValidator

    • Field Detail

      • test

        private Test test
        Test that this validator checks
      • expectedStatus

        private boolean expectedStatus
        Status expected from the TestReport
      • expectedErrorCode

        private java.lang.String expectedErrorCode
        Error code expected from the TestReport
      • ERROR_UNEXPECTED_TEST_STATUS

        static final java.lang.String ERROR_UNEXPECTED_TEST_STATUS
        Error code used when the test status is is different from the expected status.
        See Also:
        Constant Field Values
      • ERROR_UNEXPECTED_ERROR_CODE

        static final java.lang.String ERROR_UNEXPECTED_ERROR_CODE
        Error code used when the test error code is different from the expected error code.
        See Also:
        Constant Field Values
      • ENTRY_KEY_EXPECTED_ERROR_CODE

        public static final java.lang.String ENTRY_KEY_EXPECTED_ERROR_CODE
        The error description entry when the test fails
        See Also:
        Constant Field Values
      • ENTRY_KEY_RECEIVED_ERROR_CODE

        public static final java.lang.String ENTRY_KEY_RECEIVED_ERROR_CODE
        Entry describing the received error code which is different from the expected one.
        See Also:
        Constant Field Values
      • ENTRY_KEY_EXPECTED_STATUS

        public static final java.lang.String ENTRY_KEY_EXPECTED_STATUS
        The entry describing the expected status when the test status is unexpected.
        See Also:
        Constant Field Values
      • ENTRY_KEY_RECEIVED_STATUS

        public static final java.lang.String ENTRY_KEY_RECEIVED_STATUS
        Entry describing the received status which is different from the expected one.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TestReportValidator

        public TestReportValidator​(Test test,
                                   boolean expectedStatus,
                                   java.lang.String expectedErrorCode)
        Constructor
      • TestReportValidator

        protected TestReportValidator()
        Protected constructor, for use by derived classes
    • Method Detail

      • setConfig

        protected void setConfig​(Test test,
                                 boolean expectedStatus,
                                 java.lang.String expectedErrorCode)
        Lets derived classes set the configuration parameters for this test.
      • runImpl

        public TestReport runImpl()
                           throws java.lang.Exception
        Description copied from class: AbstractTest
        Subclasses should implement this method with the content of the test case. Typically, implementations will choose to catch and process all exceptions and error conditions they are looking for in the code they exercise but will let exceptions due to their own processing propagate.
        Overrides:
        runImpl in class AbstractTest
        Throws:
        java.lang.Exception