Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow mocking of enum element-methods with @Mocked, without requiring @Capturing #2
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.