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

67

tests

0

failures

0

ignored

0.349s

duration

100%

successful

Tests

Test Duration Result
test_constructor_key 0.001s passed
test_constructor_key_checkType_expectedVal 0s passed
test_constructor_key_valueType 0s passed
test_constructor_key_valueType_expectedVal 0s passed
test_constructor_key_valueType_expectedVal_failureMsg 0s passed
test_isExpectationForAction_expectationActionNull_testActionEmpty 0s passed
test_isExpectationForAction_expectationActionNull_testActionNonEmpty 0.001s passed
test_isExpectationForAction_expectationActionNull_testActionNull 0s passed
test_isExpectationForAction_testActionEmpty 0s passed
test_isExpectationForAction_testActionMatch 0s passed
test_isExpectationForAction_testActionMismatch 0s passed
test_isExpectationForAction_testActionNull 0s passed
test_validate_contentObjectEmptyJsonObject 0.013s passed
test_validate_contentObjectEmptyString 0.022s passed
test_validate_contentObjectIncludesMultipleValidJsonStrings_firstObjectIncludesExpectedKey_correctValue 0.001s passed
test_validate_contentObjectIncludesMultipleValidJsonStrings_firstObjectIncludesExpectedKey_wrongValue 0.015s passed
test_validate_contentObjectNonJsonString 0.011s passed
test_validate_contentObjectNotAString 0.015s passed
test_validate_contentObjectStartsWithValidJsonString_firstObjectMissingExpectedKey 0.012s passed
test_validate_currentTestActionDifferentCasing 0s passed
test_validate_currentTestActionSubstring 0s passed
test_validate_currentTestActionSuperstring 0.001s passed
test_validate_expectFalseType_fails 0.007s passed
test_validate_expectFalseType_succeeds 0.001s passed
test_validate_expectFalseType_withNonFalseExpectedValue 0.001s passed
test_validate_expectNullType_fails 0.008s passed
test_validate_expectNullType_succeeds 0.002s passed
test_validate_expectNullType_withNonNullExpectedValue 0.001s passed
test_validate_expectNumberType_fails 0.007s passed
test_validate_expectNumberType_succeeds 0.001s passed
test_validate_expectNumberType_valueIsAlmostEqual 0.007s passed
test_validate_expectNumberType_withNonNumberExpectedValue_fails 0.008s passed
test_validate_expectStringType_fails 0.007s passed
test_validate_expectStringType_succeeds 0.001s passed
test_validate_expectStringType_withExpectedValue_fails 0.008s passed
test_validate_expectStringType_withExpectedValue_succeeds 0.001s passed
test_validate_expectTrueType_fails 0.007s passed
test_validate_expectTrueType_succeeds 0.001s passed
test_validate_expectTrueType_withNonTrueExpectedValue 0.001s passed
test_validate_jsonArray_fails 0.009s passed
test_validate_jsonArray_succeeds 0.002s passed
test_validate_jsonKey_exists_fails 0.007s passed
test_validate_jsonKey_exists_succeeds 0.002s passed
test_validate_jsonObject_fails 0.009s passed
test_validate_jsonObject_succeeds 0.002s passed
test_validate_keyExpectedToBeMissing_fails 0.007s passed
test_validate_keyExpectedToBeMissing_succeeds 0s passed
test_validate_mismatchedCurrentTestAction 0s passed
test_validate_missingExpectedKey 0.010s passed
test_validate_nullContentObject 0.037s passed
test_validate_nullCurrentTestAction 0s passed
test_validate_object_equals_noValueTypeSet 0.007s passed
test_validate_string_containsRegex_fails 0.010s passed
test_validate_string_containsRegex_succeeds 0.001s passed
test_validate_string_contains_fails 0.011s passed
test_validate_string_contains_succeeds 0.002s passed
test_validate_string_doesNotContainRegex_fails 0.010s passed
test_validate_string_doesNotContainRegex_succeeds 0.001s passed
test_validate_string_doesNotContain_fails 0.009s passed
test_validate_string_doesNotContain_succeeds 0.002s passed
test_validate_string_equals_fails 0.011s passed
test_validate_string_equals_succeeds 0.001s passed
test_validate_string_nonStringValue 0.013s passed
test_validate_string_notNull_fails 0.011s passed
test_validate_string_notNull_succeeds 0.001s passed
test_validate_string_null_fails 0.011s passed
test_validate_string_null_succeeds 0.002s passed

Standard output

    TrConfigZapper.zapTrConfig : start invoke init()
init: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@8d26232e
registerLoggerHandlerSingleton: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@8d26232e
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@8d26232e
    TrConfigZapper.zapTrConfig : finished invoke init()
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
-- Trace -------------------------------------------------

Standard error

[ERROR   ] Exception occurred in submitRequestWithNonNullObjects
This is an exception message.
[ERROR   ] Exception occurred in doFormLogin
This is an exception message.
[ERROR   ] Exception occurred in null
[ERROR   ] Exception occurred in some method
java.lang.Exception
[ERROR   ] Exception occurred in some method
Another sub-message from the cause
[ERROR   ] Exception occurred in some method
Sub-message for the third cause
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringEquals
INFO: Test assertion is: false
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringEquals
INFO: An error occurred validating JSON data. Was expecting content to equal [searchForVal] but received [quick]
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringEquals
INFO: Test assertion is: true
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringNull
INFO: Test assertion is: false
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringNull
INFO: An error occurred validating JSON data. Expected value to be null, but received [badValue]
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringNull
INFO: Test assertion is: true
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringNotNull
INFO: Test assertion is: false
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringNotNull
INFO: An error occurred validating JSON data. Expected value not to be null, but it was.
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringNotNull
INFO: Test assertion is: true
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringEquals
INFO: Test assertion is: false
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringEquals
INFO: An error occurred validating JSON data. Was expecting content to equal [searchForVal] but received [badValue]
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringEquals
INFO: Test assertion is: true
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringContains
INFO: Test assertion is: false
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringContains
INFO: An error occurred validating JSON data. Was expecting to find [searchForVal] but received [badValue]
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringContains
INFO: Test assertion is: true
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringDoesNotContain
INFO: Test assertion is: false
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringDoesNotContain
INFO: An error occurred validating JSON data. Was not expecting to find [searchForVal] but received [value is searchForVal in here somewhere]
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringDoesNotContain
INFO: Test assertion is: true
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexFound
INFO: Test assertion is: false
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexFound
INFO: An error occurred validating JSON data. Did not find expected regex [[a-zA-Z]+] in content: [1234567890]
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexFound
INFO: Test assertion is: true
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexNotFound
INFO: Test assertion is: false
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexNotFound
INFO: An error occurred validating JSON data. Found unexpected regex [[a-zA-Z]+] in content: [bad Value]
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateRegexNotFound
INFO: Test assertion is: true
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValue
INFO: Skipping validation of the value for key [searchKey] because no expected value has been set.
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateNonStringValue
INFO: Validating the value for the expected key as a non-string value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateJsonPrimitiveType
INFO: Validating the value for the expected key as a JSON primitive value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValue
INFO: Skipping validation of the value for key [searchKey] because no expected value has been set.
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringEquals
INFO: Test assertion is: false
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringEquals
INFO: This is an expectation-defined failure message. Was expecting content to equal [some other value] but received [value]
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateStringValue
INFO: Validating the value for the expected key as a string
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.validation.TestValidationUtils validateStringEquals
INFO: Test assertion is: true
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValue
INFO: Skipping validation of the value for key [searchKey] because no expected value has been set.
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateNonStringValue
INFO: Validating the value for the expected key as a non-string value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateJsonPrimitiveType
INFO: Validating the value for the expected key as a JSON primitive value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValue
INFO: Skipping validation of the value for key [searchKey] because no expected value has been set.
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateNonStringValue
INFO: Validating the value for the expected key as a non-string value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateJsonPrimitiveType
INFO: Validating the value for the expected key as a JSON primitive value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValue
INFO: Skipping validation of the value for key [searchKey] because no expected value has been set.
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateNonStringValue
INFO: Validating the value for the expected key as a non-string value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateJsonNonPrimitiveType
INFO: Validating the value for the expected key as a non-JSON primitive value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateNonStringValue
INFO: Validating the value for the expected key as a non-string value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateJsonNonPrimitiveType
INFO: Validating the value for the expected key as a non-JSON primitive value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateNonStringValue
INFO: Validating the value for the expected key as a non-string value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateJsonNonPrimitiveType
INFO: Validating the value for the expected key as a non-JSON primitive value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateNonStringValue
INFO: Validating the value for the expected key as a non-string value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateJsonNonPrimitiveType
INFO: Validating the value for the expected key as a non-JSON primitive value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateNonStringValue
INFO: Validating the value for the expected key as a non-string value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateJsonNonPrimitiveType
INFO: Validating the value for the expected key as a non-JSON primitive value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateValueType
INFO: Validating the ValueType of the value found for the expected key
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateNonStringValue
INFO: Validating the value for the expected key as a non-string value
May 13, 2024 9:28:07 PM com.ibm.ws.security.fat.common.expectations.JsonObjectExpectation validateJsonNonPrimitiveType
INFO: Validating the value for the expected key as a non-JSON primitive value