Skip to content

Commit 0e84992

Browse files
committed
updated test
1 parent 1a5909a commit 0e84992

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ public void testParameterOrders() throws Exception {
3232
final String content = FileUtils.readFileToString(petControllerFile);
3333

3434

35-
Assert.assertTrue(content.contains("ResponseEntity<LocalizedText> updateTest(@ApiParam(value = \"description\",required=true) @PathVariable(\"id\") Long id" + System.lineSeparator() +
36-
",@ApiParam(value = \"Localized Text object containing updated data.\" ,required=true ) @Valid @RequestBody LocalizedText body" + System.lineSeparator() +
35+
36+
Assert.assertTrue(content.contains("ResponseEntity<LocalizedText> updateTest(@Parameter(description = \"description\",required=true, schema=@Schema()) @PathVariable(\"id\") Long id" + System.lineSeparator() +
37+
", @Parameter(description = \"Localized Text object containing updated data.\" ,required=true, schema=@Schema())@Valid @RequestBody LocalizedText body" + System.lineSeparator() +
3738
");"));
3839

3940
this.folder.delete();

0 commit comments

Comments
 (0)