From 6780e8549762200c17b5149e3773133a720948a1 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 7 Oct 2024 16:19:08 +0000 Subject: [PATCH] a reformat code --- .../test/java/org/approvaltests/XmlFormattingTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/approvaltests-tests/src/test/java/org/approvaltests/XmlFormattingTest.java b/approvaltests-tests/src/test/java/org/approvaltests/XmlFormattingTest.java index 32cec13b..f7cac4d7 100644 --- a/approvaltests-tests/src/test/java/org/approvaltests/XmlFormattingTest.java +++ b/approvaltests-tests/src/test/java/org/approvaltests/XmlFormattingTest.java @@ -32,14 +32,14 @@ void xmlWithEmojiesAndAmpersands() String minimizedXml = expected.replaceAll("\n", "").replace(" ", ""); verifyXml(minimizedXml, expected); } - - private static void verifyXml(String minimizedXml, String expected) { + private static void verifyXml(String minimizedXml, String expected) + { Options options = new Options().inline(expected); final String formattedXml = prettyPrintXml(minimizedXml); Approvals.verify(formattedXml, options.forFile().withExtension(".xml")); } - - private static String prettyPrintXml(String minimizedXml) { + private static String prettyPrintXml(String minimizedXml) + { try { Source xmlInput = new StreamSource(new StringReader(minimizedXml));