Class NamedMatch
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.contract_testing.contractcase.definitions.matchers.base.AnyMatcher
-
- io.contract_testing.contractcase.definitions.matchers.convenience.NamedMatch
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-08-20T01:46:20.842Z") @Stability(Stable) public class NamedMatch extends AnyMatcher
Saves the matcher below it with a unique name that can be used with lookups in tests after this one.Lookups can be made with
matchers.convenience.ReferenceMatch.
-
-
Constructor Summary
Constructors Modifier Constructor Description NamedMatch(String name, Object child)Saves the matcher below it with a unique name that can be used with lookups in tests after this one.protectedNamedMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedNamedMatch(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjecttoJSON()For non-TypeScript implementations (seeAnyMatcher.toJSON).-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
NamedMatch
protected NamedMatch(software.amazon.jsii.JsiiObjectRef objRef)
-
NamedMatch
protected NamedMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
NamedMatch
@Stability(Stable) public NamedMatch(@NotNull String name, @NotNull Object child)Saves the matcher below it with a unique name that can be used with lookups in tests after this one.Lookups can be made with
matchers.convenience.ReferenceMatch.- Parameters:
name-- The name you can use to lookup this matcher later.
child-- The content of this named match.
-
-
Method Detail
-
toJSON
@Stability(Stable) @NotNull public Object toJSON()
For non-TypeScript implementations (seeAnyMatcher.toJSON).- Overrides:
toJSONin classAnyMatcher- Returns:
- An object in the matcher format described {@link https://case.contract-testing.io/docs/reference/plugin-framework in the Extending ContractCase documentation}
-
-