Class com.ibm.ws.security.fat.common.expectations.ResponseStatusExpectationTest

24

tests

0

failures

0

ignored

0.033s

duration

100%

successful

Tests

Test Duration Result
test_constructor 0.001s passed
test_constructor_intStatus_noFailureMsg 0.001s passed
test_constructor_intStatus_withFailureMsg 0s passed
test_constructor_nullArgs 0.001s passed
test_isExpectationForAction_testActionEmpty 0.001s passed
test_isExpectationForAction_testActionMatch 0.001s passed
test_isExpectationForAction_testActionMismatch 0.001s passed
test_isExpectationForAction_testActionNull 0.001s passed
test_validate_checkTypeContains_fails 0.002s passed
test_validate_checkTypeContains_passes 0.002s passed
test_validate_checkTypeDoesNotContain_fails 0.002s passed
test_validate_checkTypeDoesNotContain_passes 0.001s passed
test_validate_checkTypeDoesNotMatch_fails 0.002s passed
test_validate_checkTypeDoesNotMatch_passes 0.002s passed
test_validate_checkTypeMatches_fails 0.002s passed
test_validate_checkTypeMatches_passes 0.001s passed
test_validate_currentTestActionDifferentCasing 0.001s passed
test_validate_currentTestActionSubstring 0.001s passed
test_validate_currentTestActionSuperstring 0.001s passed
test_validate_mismatchedCurrentTestAction 0.001s passed
test_validate_nullContentObject 0.004s passed
test_validate_nullCurrentTestAction 0.001s passed
test_validate_unknownCheckType 0.002s passed
test_validate_unsupportedResponseType 0.001s passed

Standard output

SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
-- Trace -------------------------------------------------

Standard error

[ERROR   ] Error validating response
Failed to validate response status: Did not receive the expected status code [200] during test action [some test action]. Was expecting content to equal [200] but received [-1]
[ERROR   ] Error validating response
This is a failure message. Failed to validate response text: This is a failure message. Was expecting to find [DO NOT FIND] but received [This is some response content]
[ERROR   ] Error printing response (log error and go on)
Unknown response type: java.lang.String
[ERROR   ] Error printing response (log error and go on)
Getting title not supported with type: com.gargoylesoftware.htmlunit.WebResponse$$EnhancerByCGLIB$$3f6fa69a
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.web.WebResponseUtils getResponseStatusCode
INFO: pageOrResponse is null
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringContains
INFO: Test assertion is: false
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringContains
INFO: This is a failure message. Was expecting to find [searchForVal] but received [-1]
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringContains
INFO: Test assertion is: false
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringContains
INFO: This is a failure message. Was expecting to find [searchForVal] but received [200]
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringContains
INFO: Test assertion is: true
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringDoesNotContain
INFO: Test assertion is: false
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringDoesNotContain
INFO: This is a failure message. Was not expecting to find [403] but received [403]
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringDoesNotContain
INFO: Test assertion is: true
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexFound
INFO: Test assertion is: false
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexFound
INFO: This is a failure message. Did not find expected regex [[0-9]{4}] in content: [200]
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexFound
INFO: Test assertion is: true
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexNotFound
INFO: Test assertion is: false
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexNotFound
INFO: This is a failure message. Found unexpected regex [[0-9]{3}] in content: [200]
Sep 06, 2018 1:59:30 AM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexNotFound
INFO: Test assertion is: true