Class Match
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.integtests.alpha.Match
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-27T17:02:11.921Z")
@Stability(Experimental)
public abstract class Match
extends software.amazon.jsii.JsiiObject
(experimental) Partial and special matching during assertions.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(experimental) Matches the specified pattern with the array found in the same relative path of the target.objectLike
(Map<String, ? extends Object> pattern) (experimental) Matches the specified pattern to an object found in the same relative path of the target.serializedJson
(Map<String, ? extends Object> pattern) (experimental) Matches any string-encoded JSON and applies the specified pattern after parsing it.stringLikeRegexp
(String pattern) (experimental) Matches targets according to a regular expression.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Match
protected Match(software.amazon.jsii.JsiiObjectRef objRef) -
Match
protected Match(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Match
@Stability(Experimental) protected Match()
-
-
Method Details
-
arrayWith
@Stability(Experimental) @NotNull public static Map<String,List<Object>> arrayWith(@NotNull List<? extends Object> pattern) (experimental) Matches the specified pattern with the array found in the same relative path of the target.The set of elements (or matchers) must be in the same order as would be found.
- Parameters:
pattern
- the pattern to match. This parameter is required.
-
objectLike
@Stability(Experimental) @NotNull public static Map<String,Map<String, objectLikeObject>> (@NotNull Map<String, ? extends Object> pattern) (experimental) Matches the specified pattern to an object found in the same relative path of the target.The keys and their values (or matchers) must be present in the target but the target can be a superset.
- Parameters:
pattern
- the pattern to match. This parameter is required.
-
serializedJson
@Stability(Experimental) @NotNull public static Map<String,Map<String, serializedJsonObject>> (@NotNull Map<String, ? extends Object> pattern) (experimental) Matches any string-encoded JSON and applies the specified pattern after parsing it.- Parameters:
pattern
- the pattern to match after parsing the encoded JSON. This parameter is required.
-
stringLikeRegexp
@Stability(Experimental) @NotNull public static Map<String,String> stringLikeRegexp(@NotNull String pattern) (experimental) Matches targets according to a regular expression.- Parameters:
pattern
- This parameter is required.
-