Class CheckOneOfStatusesTokenizedValidator
java.lang.Object
ee.jakarta.tck.ws.rs.common.webclient.validation.WebValidatorBase
ee.jakarta.tck.ws.rs.common.webclient.validation.TokenizedValidator
ee.jakarta.tck.ws.rs.common.webclient.validation.CheckOneOfStatusesTokenizedValidator
- All Implemented Interfaces:
ValidationStrategy
Sometimes it is not clear what result one should get, there might be more two
or more possibilities. This strategy checks the response contains at least
one of the given statuses.
The statuses are supposed to be separated by "|" character
- Author:
- Jan Supol
-
Field Summary
Fields inherited from class ee.jakarta.tck.ws.rs.common.webclient.validation.WebValidatorBase
_case, _req, _res, CLIENT_ERROR, SERVER_ERROR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
When WebTestCase contains more expected response codes it always means to check one of them is present; if present, other statuses are dropped.Methods inherited from class ee.jakarta.tck.ws.rs.common.webclient.validation.TokenizedValidator
checkGoldenfile
Methods inherited from class ee.jakarta.tck.ws.rs.common.webclient.validation.WebValidatorBase
checkExpectedHeaders, checkReasonPhrase, checkSearchStrings, checkSearchStringsNoCase, checkUnexpectedHeaders, checkUnexpectedSearchStrings, checkUnorderedSearchStrings, isEmpty, validate
-
Constructor Details
-
CheckOneOfStatusesTokenizedValidator
public CheckOneOfStatusesTokenizedValidator()
-
-
Method Details
-
checkStatusCode
When WebTestCase contains more expected response codes it always means to check one of them is present; if present, other statuses are dropped. Super class method is called to get the logging messages- Overrides:
checkStatusCode
in classWebValidatorBase
- Returns:
- boolen result of check
- Throws:
IOException
- if an IO error occurs during validation
-