@@ -55,7 +55,7 @@ class MethodWriterSpec extends Specification {
5555 then :
5656 target. toString () == """ \
5757 @GetMapping(path = "${ endpoint.path} ")
58- ResponseEntity<void > getPing();
58+ ResponseEntity<Void > getPing();
5959"""
6060 }
6161
@@ -162,7 +162,7 @@ class MethodWriterSpec extends Specification {
162162 then:
163163 target.toString () == " " " \
164164 @GetMapping (path = " ${ endpoint.path} " )
165- ResponseEntity<void > getFoo (@RequestParam (name = " foo" ) String foo );
165+ ResponseEntity<Void > getFoo (@RequestParam (name = " foo" ) String foo );
166166"""
167167 }
168168
@@ -179,7 +179,7 @@ class MethodWriterSpec extends Specification {
179179 then:
180180 target.toString () == """ \
181181 @GetMapping (path = " ${ endpoint.path} " )
182- ResponseEntity<void > getFoo (@RequestParam (name = " foo" , required = false ) String foo );
182+ ResponseEntity<Void > getFoo (@RequestParam (name = " foo" , required = false ) String foo );
183183"""
184184 }
185185
@@ -196,7 +196,7 @@ class MethodWriterSpec extends Specification {
196196 then:
197197 target.toString () == """ \
198198 @GetMapping (path = " ${ endpoint.path} " )
199- ResponseEntity<void > getFoo (@RequestHeader (name = " x-foo" ) String xFoo );
199+ ResponseEntity<Void > getFoo (@RequestHeader (name = " x-foo" ) String xFoo );
200200"""
201201 }
202202
@@ -213,7 +213,7 @@ class MethodWriterSpec extends Specification {
213213 then:
214214 target.toString () == """ \
215215 @GetMapping (path = " ${ endpoint.path} " )
216- ResponseEntity<void > getFoo (@RequestHeader (name = " x-foo" , required = false ) String xFoo );
216+ ResponseEntity<Void > getFoo (@RequestHeader (name = " x-foo" , required = false ) String xFoo );
217217"""
218218 }
219219
@@ -230,7 +230,7 @@ class MethodWriterSpec extends Specification {
230230 then:
231231 target.toString () == """ \
232232 @GetMapping (path = " ${ endpoint.path} " )
233- ResponseEntity<void > getFoo (@CookieValue (name = " foo" ) String foo );
233+ ResponseEntity<Void > getFoo (@CookieValue (name = " foo" ) String foo );
234234"""
235235 }
236236
@@ -247,7 +247,7 @@ class MethodWriterSpec extends Specification {
247247 then:
248248 target.toString () == """ \
249249 @GetMapping (path = " ${ endpoint.path} " )
250- ResponseEntity<void > getFoo (@CookieValue (name = " foo" , required = false ) String foo );
250+ ResponseEntity<Void > getFoo (@CookieValue (name = " foo" , required = false ) String foo );
251251"""
252252 }
253253
@@ -269,7 +269,7 @@ class MethodWriterSpec extends Specification {
269269 then:
270270 target.toString () == """ \
271271 @GetMapping (path = " ${ endpoint.path} " )
272- ResponseEntity<void > getFoo (Foo foo );
272+ ResponseEntity<Void > getFoo (Foo foo );
273273"""
274274 }
275275
@@ -286,7 +286,7 @@ class MethodWriterSpec extends Specification {
286286 then:
287287 target.toString () == """ \
288288 @GetMapping (path = " ${ endpoint.path} " )
289- ResponseEntity<void > getFoo (@RequestParam (name = " foo" ) Map foo );
289+ ResponseEntity<Void > getFoo (@RequestParam (name = " foo" ) Map foo );
290290"""
291291 }
292292
@@ -303,7 +303,7 @@ class MethodWriterSpec extends Specification {
303303 then:
304304 target.toString () == """ \
305305 @GetMapping (path = " ${ endpoint.path} " )
306- ResponseEntity<void > getFOOooBARrr (@RequestParam (name = " foo" ) String foo );
306+ ResponseEntity<Void > getFOOooBARrr (@RequestParam (name = " foo" ) String foo );
307307"""
308308 }
309309
@@ -320,7 +320,7 @@ class MethodWriterSpec extends Specification {
320320 then:
321321 target.toString () == """ \
322322 @GetMapping (path = " ${ endpoint.path} " )
323- ResponseEntity<void > getFoo (@RequestParam (name = " _fo-o" ) String foO );
323+ ResponseEntity<Void > getFoo (@RequestParam (name = " _fo-o" ) String foO );
324324"""
325325 }
326326
@@ -341,7 +341,7 @@ class MethodWriterSpec extends Specification {
341341 then:
342342 target.toString () == """ \
343343 @PostMapping (path = " ${ endpoint.path} " , consumes = {" application/json" })
344- ResponseEntity<void > postFoo (@RequestBody FooRequestBody body );
344+ ResponseEntity<Void > postFoo (@RequestBody FooRequestBody body );
345345"""
346346 }
347347
@@ -363,7 +363,7 @@ class MethodWriterSpec extends Specification {
363363 then:
364364 target.toString () == """ \
365365 @PostMapping (path = " ${ endpoint.path} " , consumes = {" application/json" })
366- ResponseEntity<void > postFoo (@RequestBody (required = false ) FooRequestBody body );
366+ ResponseEntity<Void > postFoo (@RequestBody (required = false ) FooRequestBody body );
367367"""
368368 }
369369
@@ -382,7 +382,7 @@ class MethodWriterSpec extends Specification {
382382 then:
383383 target.toString () == """ \
384384 @GetMapping (path = " ${ endpoint.path} " )
385- ResponseEntity<void > getFoo (@RequestParam (name = " foo" , required = false , defaultValue = " bar" ) String foo );
385+ ResponseEntity<Void > getFoo (@RequestParam (name = " foo" , required = false , defaultValue = " bar" ) String foo );
386386"""
387387 }
388388
0 commit comments