-
Notifications
You must be signed in to change notification settings - Fork 100
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
Fail to mock Java Generic interface with overloaded method (different number of params) #225
Comments
We have several tests related to overloaded methods, have a look here: ScalaMock/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala Lines 78 to 112 in f20cad7
what if you declare |
I looked into the provided tests. even in one of the forks which have more tests. But my edge case isnt covered. I tried you approach with a trait but I got the same result.
for this example its quit simple but for more complicated interfaces its might be hard/ugly to do. |
ScalaMock Version
3.6.0
Scala Version
2.11
Runtime
JVM
Please describe the expected behavior of the issue
I would expect to mock Java Generic interfaces having overloaded method with different number of params in the same way I mock other Java interfaces or Scala traits
Please provide a description of what actually happens
When trying to mock this interface I get the following compile error:
Reproducible Test Case
The text was updated successfully, but these errors were encountered: