Class AnyMatcher
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.contract_testing.contractcase.definitions.matchers.base.AnyMatcher
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
And,AnyMatcherWithExample,ArrayContains,ArrayEachEntryMatches,ArrayLength,ArrayStartsWith,Base64Encoded,CascadingContextMatcher,FunctionArguments,HttpRequest,HttpResponse,NamedMatch,ObjectEachKeyMatches,ObjectEachValueMatches,ReferenceMatch,StateVariable,StringifiedJson,StringPrefix,StringSuffix,UriEncodedString
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-08-20T01:46:20.839Z") @Stability(Stable) public abstract class AnyMatcher extends software.amazon.jsii.JsiiObject
The base class for all Test Equivalence Matchers.Extend this if you don't have an example in your Matcher. Otherwise, use
AnyMatcherWithExample
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnyMatcher(String matcherType)The base class for all Test Equivalence Matchers.protectedAnyMatcher(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedAnyMatcher(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjecttoJSON()Only override this method if you are writing a matcher in a language other than TypeScript.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
AnyMatcher
protected AnyMatcher(software.amazon.jsii.JsiiObjectRef objRef)
-
AnyMatcher
protected AnyMatcher(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
AnyMatcher
@Stability(Stable) protected AnyMatcher(@NotNull String matcherType)The base class for all Test Equivalence Matchers.Extend this if you don't have an example in your Matcher. Otherwise, use
matchers.internals.AnyMatcherWithExampleMatcher strings beginning with `_case:` are reserved for the default ContractCase matchers. Only use a types prefixed with `_case:` if you wish to create a special case for a matching behaviour that is already provided by a core ContractCase matcher.- Parameters:
matcherType- - The type string for this matcher (see {@link https://case.contract-testing.io/docs/reference/plugin-framework Extending ContractCase} for a description of these strings). This parameter is required.
-
-
Method Detail
-
toJSON
@Stability(Stable) @NotNull public Object toJSON()
Only override this method if you are writing a matcher in a language other than TypeScript.It exists because the ContractCase matcher format is not legal in all languages that ContractCase supports. WARNING: Do not return a string from this method. You must instead return an object that can be serialised to JSON following the matcher format described in {@link https://case.contract-testing.io/docs/reference/plugin-framework Extending ContractCase}.
- Returns:
- An object in the matcher format described {@link https://case.contract-testing.io/docs/reference/plugin-framework in the Extending ContractCase documentation}
-
-