Package io.github.nilwurtz
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGraphqlBodyMatcher.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringextensionNamepublic final static GraphqlBodyMatcher.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description GraphqlBodyMatcher()
-
Method Summary
Modifier and Type Method Description MatchResultmatch(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. StringgetName()-
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
-
-
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.
-
-
-
-