package com.myorg; import software.amazon.awscdk.core.App; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.assertEquals; public class AmbNetworkClientTest { private final static ObjectMapper JSON = new ObjectMapper().configure(SerializationFeature.INDENT_OUTPUT, true); @Test public void testStack() throws IOException { App app = new App(); AmbNetworkClientStack stack = new AmbNetworkClientStack(app, "test"); // synthesize the stack to a CloudFormation template and compare against // a checked-in JSON file. JsonNode actual = JSON.valueToTree(app.synth().getStackArtifact(stack.getArtifactId()).getTemplate()); assertEquals(new ObjectMapper().createObjectNode(), actual); } }