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

Closed
rliesenfeld opened this Issue Jul 15, 2014 · 1 comment

Comments

1 participant
@rliesenfeld
Member

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

@rliesenfeld

This comment has been minimized.

Show comment
Hide comment
@rliesenfeld

rliesenfeld Jul 20, 2014

Member

Done.

Member

rliesenfeld commented Jul 20, 2014

Done.

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