Skip to content
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 3.2.0 #1837

Closed
Yogyatha9 opened this issue Dec 4, 2019 · 3 comments
Closed

getArgumentAt is removed in 3.2.0 #1837

Yogyatha9 opened this issue Dec 4, 2019 · 3 comments

Comments

@Yogyatha9
Copy link

I couldn't find this method in the 3.x version of InvocationOnMock. Referred to the below :
https://github.com/mockito/mockito/blob/v3.2.0/src/main/java/org/mockito/invocation/InvocationOnMock.java

Found no reference of removal in the release notes . Can you please investigate?

@TimvdLippe
Copy link
Contributor

Oh I see now. This method was removed in 2.0.0-beta.112 (dff5510) and is indeed a breaking change. You should use getArgument instead. Sorry for the confusion.

The breaking change is listed in https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2#incompatible

@Yogyatha9
Copy link
Author

yeah moved on to use getArgument. Thanks

@DidierLoiseau
Copy link

I know this is a bit old now, but FYI, it was added back in #1646, actually before this issue was opened 🙂.

I think it was in version 2.25.1, based on 2a7489d. The documentation doesn't seem to have been updated though as it is still listed as an incompatible change instead of indicating to upgrade to that version.

AFAICT it has always been there in 3.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants