Skip to content

Commit 9c2eff9

Browse files
committed
lineSeparator fix
1 parent b52a470 commit 9c2eff9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/io/swagger/codegen/v3/generators/java/JavaPolymorphicAnnotationCodegenTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public void testParameterOrders() throws Exception {
3131
final String content = FileUtils.readFileToString(petControllerFile);
3232

3333
Assert.assertTrue(content.contains(
34-
"@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = \"type\", visible = true )\n" +
35-
"@JsonSubTypes({\n" +
36-
" @JsonSubTypes.Type(value = Error.class, name = \"Error\"),\n" +
37-
" @JsonSubTypes.Type(value = Success.class, name = \"Success\"),\n" +
34+
"@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = \"type\", visible = true )" + System.lineSeparator() +
35+
"@JsonSubTypes({" + System.lineSeparator() +
36+
" @JsonSubTypes.Type(value = Error.class, name = \"Error\")," + System.lineSeparator() +
37+
" @JsonSubTypes.Type(value = Success.class, name = \"Success\")," + System.lineSeparator() +
3838
"})"));
3939

4040
this.folder.delete();

0 commit comments

Comments
 (0)