Class GraphqlBodyMatcher

  • All Implemented Interfaces:
    com.github.tomakehurst.wiremock.extension.Extension , com.github.tomakehurst.wiremock.matching.NamedValueMatcher , com.github.tomakehurst.wiremock.matching.ValueMatcher

    
    public final class GraphqlBodyMatcher
    extends RequestMatcherExtension
                        
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      MatchResult match(Request request, Parameters parameters) Compares the given Request and its GraphQL query and variables against the expected query and variables to determine if they match.
      String getName()
      • Methods inherited from class com.github.tomakehurst.wiremock.matching.RequestMatcherExtension

        match
      • Methods inherited from class com.github.tomakehurst.wiremock.matching.RequestMatcher

        equals, getExpected, hashCode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphqlBodyMatcher

        GraphqlBodyMatcher()
    • Method Detail

      • match

         MatchResult match(Request request, Parameters parameters)

        Compares the given Request and its GraphQL query and variables against the expected query and variables to determine if they match. If both queries and variables are semantically equal after normalization, it returns an exact match result; otherwise, it returns a no match result.

        Parameters:
        request - The incoming request to match against the expected query and variables.
        parameters - Additional parameters that may be used for matching.