Commit b23a699
authored
Document strictness implication of
Removing an explicit `openMocks(this)` call shifts `@Mock` fields onto
the extension/runner's strict mocking session, which may surface
`UnnecessaryStubbingException` for tests that previously benefited from
the lenient mocks created by `openMocks`. Mention the opt-out via
`@MockitoSettings(strictness = Strictness.LENIENT)`.
Refs #987RemoveInitMocksIfRunnersSpecified (#990)1 parent b06f6a4 commit b23a699
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments