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

Mockito4.argThat doesn't work as epxected #37

Open
dmfs opened this issue Oct 18, 2022 · 0 comments
Open

Mockito4.argThat doesn't work as epxected #37

dmfs opened this issue Oct 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dmfs
Copy link
Collaborator

dmfs commented Oct 18, 2022

Mockito4.argThat still needs to be wrapped into Mockito's argThat because it implements ArgumentMatcher. The Hamcrest argThat returns a T and can be used directly in a Mockito expression. We have two options:

Rename our argThat to hasQualityThat so you use it like

argThat(hasQualityThat(iterates(...)))

Or implement argThat like the Hamcrest equivalent.

@saynotobugsorg saynotobugsorg added the bug Something isn't working label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants