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

Release 1.0.1 #137

Merged
merged 3 commits into from
Dec 10, 2016
Merged

Release 1.0.1 #137

merged 3 commits into from
Dec 10, 2016

Commits on Dec 8, 2016

  1. Handle null in argument matchers.

    When stubbing with argument matchers, the following
    scenario would cause a NullPointerException:
    
    ```
    whenever(mock.doSomething(argThat { })).thenReturn("")
    whenever(mock.doSomething(argThat { })).thenReturn("")
    ```
    
    The second `argThat` invocation returns a `null` value,
    which gets propagated into the function passed to the
    first `argThat` invocation.
    
    This commit filters `null` values to always evaluate to
    `false` when provided to an argument matcher.
    nhaarman committed Dec 8, 2016
    Configuration menu
    Copy the full SHA
    b77d969 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2016

  1. Merge pull request #135 from nhaarman/handle-null-in-argumentmatcher

    Handle `null` in argument matchers.
    nhaarman authored Dec 10, 2016
    Configuration menu
    Copy the full SHA
    263344f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8c9e5d7 View commit details
    Browse the repository at this point in the history