Class CheckOneOfStatusesTokenizedValidator
java.lang.Object
com.sun.ts.tests.common.webclient.validation.WebValidatorBase
com.sun.ts.tests.common.webclient.validation.TokenizedValidator
com.sun.ts.tests.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 SummaryFields inherited from class com.sun.ts.tests.common.webclient.validation.WebValidatorBase_case, _req, _res, CLIENT_ERROR, SERVER_ERROR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanWhen 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 com.sun.ts.tests.common.webclient.validation.TokenizedValidatorcheckGoldenfileMethods inherited from class com.sun.ts.tests.common.webclient.validation.WebValidatorBasecheckExpectedHeaders, checkReasonPhrase, checkSearchStrings, checkSearchStringsNoCase, checkUnexpectedHeaders, checkUnexpectedSearchStrings, checkUnorderedSearchStrings, isEmpty, validate
- 
Constructor Details- 
CheckOneOfStatusesTokenizedValidatorpublic CheckOneOfStatusesTokenizedValidator()
 
- 
- 
Method Details- 
checkStatusCodeWhen 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:
- checkStatusCodein class- WebValidatorBase
- Returns:
- boolen result of check
- Throws:
- IOException- if an IO error occurs during validation
 
 
-