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 #2807

Merged
merged 16 commits into from Dec 22, 2022
Merged

Improve vararg handling #2807

merged 16 commits into from Dec 22, 2022

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
    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
    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
    Copy the full SHA
    b2b8122 View commit details
    Browse the repository at this point in the history
  4. Alternative way of skinning the same cat.

    ...add the `type()` method to the `ArgumentMatcher` interface, rather than the `VarargMatcher` interface.
    
    This would allow the, IMHO _broken_, `VarargMatcher` interface to be removed in a later major release.
    big-andy-coates committed Nov 28, 2022
    Copy the full SHA
    0e111ae View commit details
    Browse the repository at this point in the history
  5. Address mockito#1593

    big-andy-coates committed Nov 28, 2022
    Copy the full SHA
    0ddedaa View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2022

  1. Mark @SInCE

    big-andy-coates committed Nov 30, 2022
    Copy the full SHA
    b7f5b5a View commit details
    Browse the repository at this point in the history
  2. Enhance Equals

    big-andy-coates committed Nov 30, 2022
    Copy the full SHA
    0b8e97c View commit details
    Browse the repository at this point in the history
  3. Harden testing

    big-andy-coates committed Nov 30, 2022
    Copy the full SHA
    519a4c1 View commit details
    Browse the repository at this point in the history
  4. Enhance Not

    big-andy-coates committed Nov 30, 2022
    Copy the full SHA
    de111f7 View commit details
    Browse the repository at this point in the history
  5. Enhance Same

    big-andy-coates committed Nov 30, 2022
    Copy the full SHA
    8e1658b View commit details
    Browse the repository at this point in the history
  6. Enhance Or

    big-andy-coates committed Nov 30, 2022
    Copy the full SHA
    c636b40 View commit details
    Browse the repository at this point in the history
  7. Enhance And

    big-andy-coates committed Nov 30, 2022
    Copy the full SHA
    73e47ac View commit details
    Browse the repository at this point in the history
  8. Code coverage

    big-andy-coates committed Nov 30, 2022
    Copy the full SHA
    93e84de View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2022

  1. Improve JavaDocs

    big-andy-coates committed Dec 14, 2022
    Copy the full SHA
    57634ff View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2022

  1. Copy the full SHA
    2400d55 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2022

  1. Copy the full SHA
    63193a8 View commit details
    Browse the repository at this point in the history