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

public class TokenizedValidator extends WebValidatorBase
 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.
 
  • Constructor Details

    • TokenizedValidator

      public TokenizedValidator()
      Creates a new instance of TokenizedValidator
  • Method Details

    • checkGoldenfile

      protected boolean checkGoldenfile() throws IOException
      Compare the server response and golenfile using a StringTokenizer.
      Specified by:
      checkGoldenfile in class WebValidatorBase
      Returns:
      true if response and goldenfile are the same.
      Throws:
      IOException - if an error occurs will processing the Goldenfile