Skip to content

Commit 495c19e

Browse files
committed
Tests fixed
1 parent 6046fa8 commit 495c19e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

springdoc-openapi-javadoc/src/test/java/test/org/springdoc/api/app37/HelloController.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,26 @@ public Car process(@RequestBody Car c) {
6767
return c;
6868
}
6969

70+
7071
/**
7172
* Pets post response entity.
7273
*
7374
* @param pet the pet
7475
* @return the response entity
7576
*/
76-
@PostMapping(value = "/pets", consumes = "application/json")
77-
public ResponseEntity<Void> petsPost(@Valid @RequestBody Pet pet) {
77+
@PostMapping(value = "/pets1", consumes = "text/plain")
78+
public ResponseEntity<Void> petsPost1(@Valid @RequestBody String pet) {
7879
return new ResponseEntity<Void>(HttpStatus.NOT_IMPLEMENTED);
7980
}
8081

8182
/**
8283
* Pets post response entity.
8384
*
84-
* @param pet the pet
85+
* @param pet the pet
8586
* @return the response entity
8687
*/
87-
@PostMapping(value = "/pets", consumes = "text/plain")
88-
public ResponseEntity<Void> petsPost(@Valid @RequestBody String pet) {
88+
@PostMapping(value = "/pets2", consumes = "application/json")
89+
public ResponseEntity<Void> petsPost2(@Valid @RequestBody Pet pet) {
8990
return new ResponseEntity<Void>(HttpStatus.NOT_IMPLEMENTED);
9091
}
91-
9292
}

0 commit comments

Comments
 (0)