Replies: 1 comment
-
I converted your issue to a discussion. What you wanted to do is 1 * eventMock.publish(_ as TypeA)
1 * eventMock.publish(_ as TypeB) With the closures you had, you get the actual argument to check whether the interaction should match. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Using stub with overridden method which takes interface as parameter and verifying with two different objects (both object inherits from the same interface) causes MissingMethodException
To Reproduce
Expected behavior
Check if both eventMock.publish() methods were called without throwing exception
Actual behavior
Throwing:
Java version
Buildtool version
What operating system are you using
Windows
Dependencies
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions