Class IntegTest
(experimental) A collection of test cases.
Inherited Members
Namespace: Amazon.CDK.IntegTests
Assembly: Amazon.CDK.IntegTests.dll
Syntax (csharp)
public class IntegTest : Construct, IConstruct, IDependable
Syntax (vb)
Public Class IntegTest
Inherits Construct
Implements IConstruct, IDependable
Remarks
Each test case file should contain exactly one instance of this class.
Stability: Experimental
ExampleMetadata: infused
Examples
IFunction lambdaFunction;
App app;
var stack = new Stack(app, "cdk-integ-lambda-bundling");
var integ = new IntegTest(app, "IntegTest", new IntegTestProps {
TestCases = new [] { stack }
});
var invoke = integ.Assertions.InvokeFunction(new LambdaInvokeFunctionProps {
FunctionName = lambdaFunction.FunctionName
});
invoke.Expect(ExpectedResult.ObjectLike(new Dictionary<string, object> {
{ "Payload", "200" }
}));
Synopsis
Constructors
IntegTest(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
IntegTest(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
IntegTest(Construct, String, IIntegTestProps) |
Properties
Assertions | (experimental) Make assertions on resources in this test case. |
Methods
OnPrepare() | (experimental) Perform final modifications before synthesis. |
Constructors
IntegTest(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected IntegTest(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
IntegTest(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected IntegTest(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
IntegTest(Construct, String, IIntegTestProps)
public IntegTest(Construct scope, string id, IIntegTestProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IIntegTestProps
Remarks
Stability: Experimental
Properties
Assertions
(experimental) Make assertions on resources in this test case.
public virtual IDeployAssert Assertions { get; }
Property Value
Remarks
Stability: Experimental
Methods
OnPrepare()
(experimental) Perform final modifications before synthesis.
protected override void OnPrepare()
Overrides
Remarks
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: Experimental