Visitar URL original
Package-level clinit suppression · Issue #3814 · mockito/mockito · GitHub
Skip to content

Package-level clinit suppression #3814

Closed

Description

@mirkoalicastro

Thank you for contributing this! I already have a use case.

As in my use case I have a lot of classes with static initializers (third party integration I would like to mock away) do you think adding a prefix / packaging version is sensible?
Like:

            "-Dmockito.suppress.clinit.packages=some.thirdparty."

Originally posted by @ddingel in #3801 (comment)

I see this as an enhancement of the feature - as this requirement is real and could simplify test configuration for interaction with legacy systems

Activity

  1. added 2 commits that reference this issue on Apr 22, 2026
    3ed37f8
    849076f
  2. added a commit that references this issue on May 12, 2026
    524b4da
  3. added a commit that references this issue on May 13, 2026
    414a999
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