New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getArgumentAt is removed in 2.7.6 #945
Comments
It seems that the deprecated method was incorrectly removed in #404. We have 2 options here: Re-introduce or document as breaking change. Personally I think we should list this as breaking change, which is unfortunate that we didn't list it earlier. Also as an action point, I propose to always list a "deprecated since" mention to prevent these incorrect removal of deprecated features. |
I changed the "What's-new-in-Mockito-2" wiki page as suggested see -> c7c9b9c . |
@ChristianSchwarz Thanks ! We missed that change. I labelled the 3 tickets as 1.x incompatible. |
Has this method been removed in 3.2.0 again ? I've just uplifted to 3.2.0 recently from 1.7.x and the usage of this method is again a compilation error ! |
No this method has not been removed. Are you sure you are compiling with the correct version of Mockito? |
Hi... thanks for the spontaneous reply. Yes I'm using mockito-core 3.2.0 and since then the getArgumentAt method usage results in a compilation error ! I've checked my pom and 3.2.0 is the only mockito version being referred to. Is there anything that I'm missing if its not dropped/deprecated? |
Please create a new issue with a reproduction case that we can debug. |
Yep raised :: #1837. Thanks |
This was removed in 2.7.6; see mockito/mockito#945
After update of Mockito from 1.10.19 to 3.8.0 (see 11833f3) testLoadPages did no longer compile as getArgumentAt was removed in Mockito 2.7.6 (see mockito/mockito#945). Fixed by replacing with getArgument.
@ChristianSchwarz the documentation change you did breaks for me though.
This reports an error because Object and int cannot be subtracted. The old form worked:
|
@mirabilos Haven't worked with Java for a long time now. You could try |
I could not find this method in 2.7.6 version of InvocationOnMock and there is also no information in the release notes in the incompatible-changes. Are you going to add it again or what was the reason to remove?
The text was updated successfully, but these errors were encountered: