Commit 52ad7b1
Avoid duplicate vararg handling with Mockito (#2201)
As @meestchoo correctly suspected in #2161, vararg expansion in
conjunction with the Mockito MockMaker is handled by both Mockito and
Spock.
The easy fix is to just not use Mockito var expansion.
Fixes #2161
---------
Co-authored-by: AndreasTu <[email protected]>1 parent a602687 commit 52ad7b1
File tree
3 files changed
+23
-1
lines changed- docs
- spock-core/src/main/java/org/spockframework/mock/runtime/mockito
- spock-specs/src/test/groovy/org/spockframework/mock/runtime/mockito
3 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
481 | 494 | | |
482 | 495 | | |
483 | 496 | | |
| |||
491 | 504 | | |
492 | 505 | | |
493 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
494 | 512 | | |
495 | 513 | | |
496 | 514 | | |
| |||
0 commit comments