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 ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forIntegTest.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIntegTest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedIntegTest(software.amazon.jsii.JsiiObjectRef objRef) IntegTest(software.constructs.Construct scope, String id, IntegTestProps props) -
Method Summary
Modifier and TypeMethodDescription(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, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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.
-
getAssertions
(experimental) Make assertions on resources in this test case.
-