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

Mocking interface default methods #203

Closed
mallorygiles opened this issue Sep 20, 2017 · 0 comments
Closed

Mocking interface default methods #203

mallorygiles opened this issue Sep 20, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@mallorygiles
Copy link

@mallorygiles mallorygiles commented Sep 20, 2017

There is no ability to mock a method that is a default method of an interface.
java.lang.IllegalArgumentException: Method not found (or private) is received if you try to add a method that is implemented as a default method of an interface using .addMockedMethod("method"). If you do not attempt to add it, the default method is called instead of it being mocked. Could we please have the ability to mock a default interface method.

@henri-tremblay henri-tremblay self-assigned this Sep 20, 2017
@henri-tremblay henri-tremblay added this to the 3.6 milestone Sep 20, 2017
@henri-tremblay henri-tremblay removed this from the 3.6 milestone Oct 9, 2017
@henri-tremblay henri-tremblay added this to the 3.5.1 milestone Oct 9, 2017
@henri-tremblay henri-tremblay removed this from the 3.5.1 milestone Nov 16, 2017
@henri-tremblay henri-tremblay added this to the 3.6 milestone Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants