Skip to content
Discussion options

You must be logged in to vote

¡Hola @msaavedranunez !

El problema es que estás mezclando en un mismo verify argumentos literales con matchers. Mira acá https://javadoc.io/doc/org.mockito/mockito-core/3.3.3/org/mockito/ArgumentMatchers.html

Concretamente:

Warning:
If you are using argument matchers, all arguments have to be provided by matchers. E.g: (example shows verification but the same applies to stubbing)

Por eso motivo te dice que se registraron 3 matchers (los tres del medio) y no cinco (el del 42 y tu consumer). Te va a convenir utilizar eq y same.

¡Decime si se entendió!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@msaavedranunez
Comment options

Answer selected by msaavedranunez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants