Interface IntegTestProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,TestOptions
- All Known Implementing Classes:
IntegTestProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.737Z")
@Stability(Experimental)
public interface IntegTestProps
extends software.amazon.jsii.JsiiSerializable, TestOptions
(experimental) Integration test properties.
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 TypeInterfaceDescriptionstatic final classA builder forIntegTestPropsstatic final classAn implementation forIntegTestProps -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegTestProps.Builderbuilder()(experimental) List of test cases that make up this test.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.cloudassembly.schema.TestOptions
getAllowDestroy, getCdkCommandOptions, getDiffAssets, getHooks, getRegions, getStackUpdateWorkflow
-
Method Details
-
getTestCases
(experimental) List of test cases that make up this test. -
builder
- Returns:
- a
IntegTestProps.BuilderofIntegTestProps
-