diff --git a/java/resource-overrides/src/test/java/software/amazon/awscdk/examples/ResourceOverridesStackTest.java b/java/resource-overrides/src/test/java/software/amazon/awscdk/examples/ResourceOverridesStackTest.java index ecefd4acc..e956437d3 100644 --- a/java/resource-overrides/src/test/java/software/amazon/awscdk/examples/ResourceOverridesStackTest.java +++ b/java/resource-overrides/src/test/java/software/amazon/awscdk/examples/ResourceOverridesStackTest.java @@ -20,8 +20,8 @@ public void shouldGenerateValidCloudFormationTemplate() throws Exception { App app = new App(); Stack stack = new ResourceOverridesStack(app, "resource-overrides"); - String actual = getStackTemplateJson(stack).toPrettyString(); - String expected = readJsonFromResource("testResourceOverrides.expected.json").toPrettyString(); + String actual = getStackTemplateJson(stack).toString(); + String expected = readJsonFromResource("testResourceOverrides.expected.json").toString(); JSONAssert.assertEquals(expected, actual, JSONCompareMode.LENIENT); }