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

Guard against multiple evaluations of before statement #1821

Commits on Nov 10, 2019

  1. Guard against multiple evaluations of before statement

    Some rules evaluate the base statement multiple times, e.g. to execute
    tests repeatedly. The changes made in mockito#1672 led to an exception in such
    cases because the `MockitoListener` was registered multiple times. Now,
    we only add the listener the first time the statement is evaluated in
    order to restore the old behavior.
    
    Fixes mockito#1767.
    marcphilipp committed Nov 10, 2019
    Copy the full SHA
    1669d8b View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    49e41aa View commit details
    Browse the repository at this point in the history