From 04f2bddecec8c04fd8ece9d21cdc449ee6a2f878 Mon Sep 17 00:00:00 2001 From: tvallin Date: Tue, 12 Nov 2024 16:19:58 +0100 Subject: [PATCH] Fix new line in custom named test --- .../test/java/io/helidon/builder/test/CustomNamedTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/builder/tests/builder/src/test/java/io/helidon/builder/test/CustomNamedTest.java b/builder/tests/builder/src/test/java/io/helidon/builder/test/CustomNamedTest.java index 217023a93d6..525b20d96b0 100644 --- a/builder/tests/builder/src/test/java/io/helidon/builder/test/CustomNamedTest.java +++ b/builder/tests/builder/src/test/java/io/helidon/builder/test/CustomNamedTest.java @@ -56,7 +56,11 @@ void testIt() throws Exception { .build(); DefaultPrettyPrinter printer = new DefaultPrettyPrinter(); String json = mapper.writer(printer).writeValueAsString(customNamed); - assertThat(json, equalTo("{\n" + " \"stringSet\" : [ \"b\", \"a\", \"y\" ]\n" + "}")); + assertThat(json, equalTo("{" + + System.lineSeparator() + + " \"stringSet\" : [ \"b\", \"a\", \"y\" ]" + + System.lineSeparator() + + "}")); } }