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

Allow mocking of enum element-methods with @Mocked, without requiring @Capturing #2

rliesenfeld opened this issue Jul 15, 2014 · 1 comment


Copy link

Enum types with per-element methods currently can only be mocked with @capturing, because of the fact that the compiler puts those method implementations into subclasses of the enum.

This is not obvious to the user, and must be avoided; use of @mocked should be enough in this case as well.

Copy link
Member Author


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

No branches or pull requests

1 participant