Class IntegTestCaseStack

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.733Z") @Stability(Experimental) public class IntegTestCaseStack extends Stack
(experimental) An integration test case stack. Allows the definition of test properties that should apply to this stack.

This should be used if there are multiple stacks in the integration test and it is necessary to specify different test case option for each. Otherwise normal stacks should be added to IntegTest

Example:

 App app;
 Stack stackUnderTest;
 IntegTestCaseStack testCaseWithAssets = IntegTestCaseStack.Builder.create(app, "TestCaseAssets")
         .diffAssets(true)
         .build();
 IntegTest.Builder.create(app, "Integ").testCases(List.of(stackUnderTest, testCaseWithAssets)).build();
 
  • Constructor Details

    • IntegTestCaseStack

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

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

      @Stability(Experimental) public IntegTestCaseStack(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable IntegTestCaseStackProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • IntegTestCaseStack

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

    • isIntegTestCaseStack

      @Stability(Experimental) @NotNull public static Boolean isIntegTestCaseStack(@NotNull Object x)
      (experimental) Returns whether the construct is a IntegTestCaseStack.

      Parameters:
      x - This parameter is required.
    • getAssertions

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