Class IntegTest

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.integtests.IntegTest
All Implemented Interfaces:
IConstruct, IDependable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.711Z") @Stability(Experimental) public class IntegTest extends Construct
(experimental) A collection of test cases.

Each test case file should contain exactly one instance of this class.

Example:

 IFunction lambdaFunction;
 App app;
 Stack stack = new Stack(app, "cdk-integ-lambda-bundling");
 IntegTest integ = IntegTest.Builder.create(app, "IntegTest")
         .testCases(List.of(stack))
         .build();
 IAwsApiCall invoke = integ.assertions.invokeFunction(LambdaInvokeFunctionProps.builder()
         .functionName(lambdaFunction.getFunctionName())
         .build());
 invoke.expect(ExpectedResult.objectLike(Map.of(
         "Payload", "200")));
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    (experimental) A fluent builder for IntegTest.

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

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct

    IConstruct.Jsii$Default, IConstruct.Jsii$Proxy

    Nested classes/interfaces inherited from interface software.constructs.IConstruct

    software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    IntegTest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    IntegTest(software.amazon.jsii.JsiiObjectRef objRef)
     
     
    IntegTest(software.constructs.Construct scope, String id, IntegTestProps props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (experimental) Make assertions on resources in this test case.
    protected void
    (experimental) Perform final modifications before synthesis.

    Methods inherited from class software.amazon.awscdk.core.Construct

    getNode, isConstruct, onSynthesize, onValidate, prepare, synthesize, validate

    Methods inherited from class software.constructs.Construct

    toString

    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, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • IntegTest

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

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

      @Stability(Experimental) public IntegTest(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull IntegTestProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • onPrepare

      @Stability(Experimental) protected void onPrepare()
      (experimental) Perform final modifications before synthesis.

      This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

      This is an advanced framework feature. Only use this if you understand the implications.

      Overrides:
      onPrepare in class Construct
    • getAssertions

      @Stability(Experimental) @NotNull public IDeployAssert getAssertions()
      (experimental) Make assertions on resources in this test case.