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

Comments

Projects
None yet
2 participants
@mallorygiles
Copy link

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 the bug label Sep 20, 2017

@henri-tremblay henri-tremblay added this to the 3.6 milestone Sep 20, 2017

@henri-tremblay henri-tremblay modified the milestones: 3.6, 3.5.1 Oct 9, 2017

@henri-tremblay henri-tremblay modified the milestones: 3.5.1, 3.6 Nov 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.