Skip to content

Commit

Permalink
Fix new line in custom named test
Browse files Browse the repository at this point in the history
  • Loading branch information
tvallin committed Nov 12, 2024
1 parent 11f75e7 commit 04f2bdd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
+ "}"));
}

}

0 comments on commit 04f2bdd

Please sign in to comment.