Interface AssertionRequest

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AssertionRequest.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.687Z") @Stability(Experimental) public interface AssertionRequest extends software.amazon.jsii.JsiiSerializable
(experimental) A request to make an assertion that the actual value matches the expected.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.integtests.*;
 Object actual;
 Object expected;
 AssertionRequest assertionRequest = AssertionRequest.builder()
         .actual(actual)
         .expected(expected)
         // the properties below are optional
         .failDeployment(false)
         .build();
 
  • Method Details

    • getActual

      @Stability(Experimental) @NotNull Object getActual()
      (experimental) The actual value received.
    • getExpected

      @Stability(Experimental) @NotNull Object getExpected()
      (experimental) The expected value to assert.
    • getFailDeployment

      @Stability(Experimental) @Nullable default Boolean getFailDeployment()
      (experimental) Set this to true if a failed assertion should result in a CloudFormation deployment failure.

      This is only necessary if assertions are being executed outside of integ-runner.

      Default: false

    • builder

      @Stability(Experimental) static AssertionRequest.Builder builder()
      Returns:
      a AssertionRequest.Builder of AssertionRequest