Commit 27eb8a3
authored
Clarify
Added documentation note explaining that since Java 15, abstract enums
are declared sealed and cannot be mocked. Attempting to return a mock
for such types will throw MockitoException instead of returning null.
Fixes #3285RETURNS_MOCKS behavior with sealed abstract enums (Java 15+) (#3773)1 parent 9e5d449 commit 27eb8a3
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1830 | 1830 | | |
1831 | 1831 | | |
1832 | 1832 | | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
1833 | 1837 | | |
1834 | 1838 | | |
1835 | 1839 | | |
| |||
0 commit comments