Class IntegTest

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-15T10:25:09.050Z") @Stability(Experimental) public class IntegTest extends software.constructs.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();
 IApiCall 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.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.

    Methods inherited from class software.constructs.Construct

    getNode, isConstruct, 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

    • getAssertions

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