Skip to content
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

Improve vararg handling #2805

Closed
wants to merge 4 commits into from
Closed

Commits on Nov 28, 2022

  1. Improve vararg handling

    Fixes: mockito#2796
    
    Add an optional method to `VarargMatcher`, which implementations
    can choose to override to return the type of object the matcher is matching.
    
    This is used by `MatcherApplicationStrategy` to determine if the type of matcher used to match a vararg parameter is of a type compatible with the vararg parameter.
    
    Where a vararg compatible matcher is found, the matcher is used to match the _raw_ parameters.
    big-andy-coates committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    48a3014 View commit details
    Browse the repository at this point in the history
  2. Formatting

    big-andy-coates committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    054665b View commit details
    Browse the repository at this point in the history
  3. Checkstyle

    big-andy-coates committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    b2b8122 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    87dbe8c View commit details
    Browse the repository at this point in the history