-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Spy does not see method called in feedback call #3302
Comments
@raphw can you look into this, please? :) |
Shouldn't you specify that the real method should be invoked? |
but it is spy, so it is calling real method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
check that
The problematic code (if that's possible) is copied here;
Provide versions (mockito / jdk / os / any other relevant information)
mockito-core - 5.11.0
junit-jupiter - 5.10.2
java 17
W10
Error
Wanted but not invoked:
a.receive();
-> at dk.bec.mortgage.resultclient.service.POC_Test$A.receive(POC_Test.java:24)
However, there was exactly 1 interaction with this mock:
a.call("123");
-> at dk.bec.mortgage.resultclient.service.POC_Test.test(POC_Test.java:47)
The text was updated successfully, but these errors were encountered: