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


1 participant

rliesenfeld commented Jul 15, 2014

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.

@rliesenfeld rliesenfeld self-assigned this Jul 15, 2014


This comment has been minimized.

Show comment
Hide comment

rliesenfeld Jul 20, 2014




rliesenfeld commented Jul 20, 2014


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