Visitar URL original
Add option to specify mockmaker for `@Spy` · Issue #2740 · mockito/mockito · GitHub
Skip to content

Add option to specify mockmaker for @Spy #2740

Closed

Description

@TimvdLippe

To expand on #2626, we should also support this option for @Spy, which will require updating our spy annotation injection engine.

Activity

  1. deepakab03 commented on Jun 12, 2024

    @deepakab03

    This will be very useful to have.there since breakpoints on Spied objects don't work with the new inline mock maker (in Eclipse).
    It works with mockito-subclass dependency added, but it would be good to have the option to specify a mock maker where required rather than change the default jar used..

    Also useful to have this option in MockitoSettings level as well..

  2. added a commit that references this issue on Jun 18, 2026
    25c4d59
  3. added a commit that references this issue on Jun 21, 2026
    d6cb323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions