Uses of Class
io.contract_testing.contractcase.definitions.matchers.base.AnyMatcher
-
-
Uses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.arrays
Subclasses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.arrays Modifier and Type Class Description classArrayContainsMatches an Array which contains elements that match the given matchers - note that two different matchers may be satisfied by the same item in the array.classArrayEachEntryMatchesMatches an array where each element matches the provided matcher.classArrayEachEntryMatchesWithExampleMatches an array where each element matches the provided matcher, but with a custom example for the whole array.classArrayLengthMatches an Array whose length is within the specified range (or 1-infinity if not specified).classArrayStartsWithMatches an Array which starts with the provided array of matchers - any additional elements in the array are ignored. -
Uses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.base
Subclasses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.base Modifier and Type Class Description classAnyMatcherWithExampleThe base class for all Test Equivalence Matchers that have examples provided.classCascadingContextMatcherThis is a passthrough matcher that does nothing except call the child matcher with the current actual data. -
Uses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.convenience
Subclasses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.convenience Modifier and Type Class Description classAndMatches all of the provided matchers.classChangeLogLevelAlters the ContractCase log level below this matcher.classNamedMatchSaves the matcher below it with a unique name that can be used with lookups in tests after this one.classReferenceMatchMatches a named matcher created withmatchers.convenience.NamedMatch.classStateVariableMatches the content of a variable that comes from a state.classWithExampleAdds an example to the provided matcher. -
Uses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.functions
Subclasses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.functions Modifier and Type Class Description classFunctionArgumentsMatches function arguments, for use with a MockFunctionCall / MockFunctionExecution. -
Uses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.http
Subclasses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.http Modifier and Type Class Description classBasicAuthHeaderValueMatches the value part of a basic auth header with the supplied username and password - useful in conjunction with the StateVariable matcher.classBearerTokenHeaderValueMatches the value part of a OIDC or OAuth header with the supplied token - useful in conjunction with the StateVariable matcher.classHttpRequestMatches any HTTP Request with the provided properties.classHttpResponseMatches any HTTP Response with the provided properties.classHttpStatusCodeMatches an HTTP status code.classUriEncodedStringConvenience matcher to treat the string as a uri encoded string - useful inpathsegments. -
Uses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.modifiers
Subclasses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.modifiers Modifier and Type Class Description classExactlyLikeEverything inside this matcher will be matched exactly, unless overridden with a generic matcher (egAnyStringorShapedLike).classShapedLikeEverything inside this matcher will be matched on the shape of the data (ie, type alone), unless overridden with other matchers. -
Uses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.objects
Subclasses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.objects Modifier and Type Class Description classObjectEachKeyMatchesMatches an object where each key matches the provided matcher.classObjectEachValueMatchesMatches an object where each value matches the provided matcher. -
Uses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.primitives
Subclasses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.primitives Modifier and Type Class Description classAnyBooleanMatches any Boolean.classAnyIntegerMatches any whole integer number.classAnyNullMatchesnull(useful for languages like Java wherebody: nullmeans no body, but you want to match a eg a json document that has the body"null").classAnyNumberMatches a number following RFC 8259 JSON. -
Uses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.strings
Subclasses of AnyMatcher in io.contract_testing.contractcase.definitions.matchers.strings Modifier and Type Class Description classAnyStringMatches any string.classBase64EncodedTransformation matcher that matches a base64 encoded version of the given string or string matcher.classStringContainingMatches any string that contains the given substring.classStringifiedJsonTransformation matcher that matches a JSON.stringify()ed version of the given object.classStringPrefixMatches any string that begins with the given constant string prefix, and ends with a matchable suffix.classStringSuffixMatches any string that begins with a matchable prefix, and ends with a constant suffix.
-