@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:20.045Z") public class IntegTest extends Construct
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")));
Modifier and Type | Class and Description |
---|---|
static class |
IntegTest.Builder
(experimental) A fluent builder for
IntegTest . |
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
IntegTest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IntegTest(software.amazon.jsii.JsiiObjectRef objRef) |
|
IntegTest(software.constructs.Construct scope,
java.lang.String id,
IntegTestProps props) |
Modifier and Type | Method and Description |
---|---|
IDeployAssert |
getAssertions()
(experimental) Make assertions on resources in this test case.
|
protected void |
onPrepare()
(experimental) Perform final modifications before synthesis.
|
getNode, isConstruct, onSynthesize, onValidate, prepare, synthesize, validate
protected IntegTest(software.amazon.jsii.JsiiObjectRef objRef)
protected IntegTest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public IntegTest(software.constructs.Construct scope, java.lang.String id, IntegTestProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.protected void onPrepare()
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.
public IDeployAssert getAssertions()