@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:16.033Z") @Stability(value=Experimental) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
IntegTest(software.constructs.Construct scope,
String id,
IntegTestProps props) |
protected |
IntegTest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IntegTest(software.amazon.jsii.JsiiObjectRef objRef) |
| 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, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected IntegTest(software.amazon.jsii.JsiiObjectRef objRef)
protected IntegTest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public IntegTest(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
IntegTestProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) 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.
@Stability(value=Experimental) @NotNull public IDeployAssert getAssertions()
Copyright © 2022. All rights reserved.