Skip to content

Commit

Permalink
a reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 7, 2024
1 parent a1d5d4b commit 6780e85
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6780e85

Please sign in to comment.