You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using mock()withSettings().useConstructor(aParam) which worked with mockito-inline3.4.6 but stopped working with 3.5.0.
It seems like the parameter is not being passed to the constructor anymore. I've put a breakpoint in the constructor and it doesn't get hit with 3.5.0 but it does get hit with 3.4.6.
Not an issue with mockito-core 3.5.0
I suspect a change as part of PR #2004 might be a clue. Commit messages talking about constructors...
I'm using
mock()
withSettings().useConstructor(aParam)
which worked withmockito-inline
3.4.6
but stopped working with3.5.0
.It seems like the parameter is not being passed to the constructor anymore. I've put a breakpoint in the constructor and it doesn't get hit with 3.5.0 but it does get hit with 3.4.6.
Not an issue with
mockito-core
3.5.0I suspect a change as part of PR #2004 might be a clue. Commit messages talking about constructors...
Versions
mockito-inline
3.4.6 <- workingmockito-inline
3.5.0 <- not workingMaven Dependencies
Example to reproduce
This is the error when running with 3.5.x
Checklist
Note that some configuration are impossible to mock via Mockito
(same as any question on stackoverflow.com)
The text was updated successfully, but these errors were encountered: