Class TokenizedValidator
java.lang.Object
ee.jakarta.tck.ws.rs.common.webclient.validation.WebValidatorBase
ee.jakarta.tck.ws.rs.common.webclient.validation.TokenizedValidator
- All Implemented Interfaces:
ValidationStrategy
- Direct Known Subclasses:
CheckOneOfStatusesTokenizedValidator
This class provides all of the functionality of the WebValidatorBase class. Additionally, it will compare the server's response body with the test case's configured goldenfile using a StringTokenizer.
-
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
Compare the server response and golenfile using a StringTokenizer.Methods inherited from class ee.jakarta.tck.ws.rs.common.webclient.validation.WebValidatorBase
checkExpectedHeaders, checkReasonPhrase, checkSearchStrings, checkSearchStringsNoCase, checkStatusCode, checkUnexpectedHeaders, checkUnexpectedSearchStrings, checkUnorderedSearchStrings, isEmpty, validate
-
Constructor Details
-
TokenizedValidator
public TokenizedValidator()Creates a new instance of TokenizedValidator
-
-
Method Details
-
checkGoldenfile
Compare the server response and golenfile using a StringTokenizer.- Specified by:
checkGoldenfile
in classWebValidatorBase
- Returns:
- true if response and goldenfile are the same.
- Throws:
IOException
- if an error occurs will processing the Goldenfile
-