Class ExpectedResult

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.integtests.alpha.ExpectedResult
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:11.273Z") @Stability(Experimental) public abstract class ExpectedResult extends software.amazon.jsii.JsiiObject
(experimental) Represents the "expected" results to compare.

Example:

 App app;
 IntegTest integ;
 integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
         "QueueUrl", "url",
         "MessageBody", "hello"));
 IApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
         "QueueUrl", "url"));
 message.expect(ExpectedResult.objectLike(Map.of(
         "Messages", List.of(Map.of("Body", "hello")))));
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    ExpectedResult(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ExpectedResult(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    arrayWith(List<? extends Object> expected)
    (experimental) The actual results must be a list and must contain an item with the expected results.
    exact(Object expected)
    (experimental) The actual results must match exactly.
    abstract String
    (experimental) The expected results encoded as a string.
    objectLike(Map<String,? extends Object> expected)
    (experimental) The expected results must be a subset of the actual results.
    abstract void
    (experimental) The expected results encoded as a string.
    (experimental) Actual results is a string that matches the Expected result regex.

    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

    • ExpectedResult

      protected ExpectedResult(software.amazon.jsii.JsiiObjectRef objRef)
    • ExpectedResult

      protected ExpectedResult(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ExpectedResult

      @Stability(Experimental) protected ExpectedResult()
  • Method Details