Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockito/mockito
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.0.0
Choose a base ref
...
head repository: mockito/mockito
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.1.0
Choose a head ref
  • 20 commits
  • 26 files changed
  • 7 contributors

Commits on Oct 12, 2021

  1. Bump versions.bytebuddy from 1.11.19 to 1.11.20 (#2443)

    Bumps `versions.bytebuddy` from 1.11.19 to 1.11.20.
    
    Updates `byte-buddy` from 1.11.19 to 1.11.20
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.11.19...byte-buddy-1.11.20)
    
    Updates `byte-buddy-agent` from 1.11.19 to 1.11.20
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.11.19...byte-buddy-1.11.20)
    
    Updates `byte-buddy-android` from 1.11.19 to 1.11.20
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.11.19...byte-buddy-1.11.20)
    
    ---
    updated-dependencies:
    - dependency-name: net.bytebuddy:byte-buddy
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: net.bytebuddy:byte-buddy-agent
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: net.bytebuddy:byte-buddy-android
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 12, 2021
    Configuration menu
    Copy the full SHA
    929188b View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. Fixes #2389: handle answers in a thread-safe manner (#2444)

    Co-authored-by: Mikaël Francoeur <[email protected]>
    LeMikaelF and LeMikaelF authored Oct 13, 2021
    Configuration menu
    Copy the full SHA
    b77aee1 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2021

  1. Bump actions/checkout from 2.3.4 to 2.3.5 (#2445)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v2.3.4...v2.3.5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 15, 2021
    Configuration menu
    Copy the full SHA
    2697478 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2021

  1. Use new CodeCov uploader (#2447)

    Per https://about.codecov.io/blog/introducing-codecovs-new-uploader/ the Bash uploader has been deprecated.
    The Bash uploader will randomly stop working, meaning we won't be able to inspect our code coverage reports.
    
    Instead, we should be using the new uploader.
    We should also check its integrity to avoid a repeat of the security vulnerability in the Bash uploader.
    TimvdLippe authored Oct 17, 2021
    Configuration menu
    Copy the full SHA
    29eb4ee View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2021

  1. Bump versions.bytebuddy from 1.11.20 to 1.11.21 (#2448)

    Bumps `versions.bytebuddy` from 1.11.20 to 1.11.21.
    
    Updates `byte-buddy` from 1.11.20 to 1.11.21
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.11.20...byte-buddy-1.11.21)
    
    Updates `byte-buddy-agent` from 1.11.20 to 1.11.21
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.11.20...byte-buddy-1.11.21)
    
    Updates `byte-buddy-android` from 1.11.20 to 1.11.21
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.11.20...byte-buddy-1.11.21)
    
    ---
    updated-dependencies:
    - dependency-name: net.bytebuddy:byte-buddy
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: net.bytebuddy:byte-buddy-agent
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: net.bytebuddy:byte-buddy-android
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 18, 2021
    Configuration menu
    Copy the full SHA
    cca7312 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2021

  1. Bump google-java-format from 1.11.0 to 1.12.0 (#2450)

    Bumps [google-java-format](https://github.com/google/google-java-format) from 1.11.0 to 1.12.0.
    - [Release notes](https://github.com/google/google-java-format/releases)
    - [Commits](google/google-java-format@v1.11.0...v1.12.0)
    
    ---
    updated-dependencies:
    - dependency-name: com.google.googlejavaformat:google-java-format
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 21, 2021
    Configuration menu
    Copy the full SHA
    dacb492 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2021

  1. Update readme with the latest Mockito version (#2456)

    3.x is not the latest release and the readme should point to the removed
    API.
    vogella authored Oct 29, 2021
    Configuration menu
    Copy the full SHA
    7f1d254 View commit details
    Browse the repository at this point in the history
  2. Bump core-ktx from 1.6.0 to 1.7.0 (#2454)

    * Bump core-ktx from 1.6.0 to 1.7.0
    
    Bumps core-ktx from 1.6.0 to 1.7.0.
    
    ---
    updated-dependencies:
    - dependency-name: androidx.core:core-ktx
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * Bump compileSdkVersion
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Tim van der Lippe <[email protected]>
    dependabot[bot] and TimvdLippe authored Oct 29, 2021
    Configuration menu
    Copy the full SHA
    7a13759 View commit details
    Browse the repository at this point in the history
  3. Bump versions.bytebuddy from 1.11.21 to 1.11.22 (#2458)

    Bumps `versions.bytebuddy` from 1.11.21 to 1.11.22.
    
    Updates `byte-buddy` from 1.11.21 to 1.11.22
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.11.21...byte-buddy-1.11.22)
    
    Updates `byte-buddy-agent` from 1.11.21 to 1.11.22
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.11.21...byte-buddy-1.11.22)
    
    Updates `byte-buddy-android` from 1.11.21 to 1.11.22
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.11.21...byte-buddy-1.11.22)
    
    ---
    updated-dependencies:
    - dependency-name: net.bytebuddy:byte-buddy
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: net.bytebuddy:byte-buddy-agent
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: net.bytebuddy:byte-buddy-android
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 29, 2021
    Configuration menu
    Copy the full SHA
    d052721 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2021

  1. Fixes #2460: remove a sentence commits to a particular version (#2461)

    Because it's not planning on making this change anytime soon
    flyaway2112 authored Oct 30, 2021
    Configuration menu
    Copy the full SHA
    f54aa92 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2021

  1. Bump actions/checkout from 2.3.5 to 2.4.0 (#2462)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v2.3.5...v2.4.0)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 2, 2021
    Configuration menu
    Copy the full SHA
    b37eed8 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2021

  1. Bump auto-service from 1.0 to 1.0.1 (#2463)

    Bumps [auto-service](https://github.com/google/auto) from 1.0 to 1.0.1.
    - [Release notes](https://github.com/google/auto/releases)
    - [Commits](google/auto@auto-value-1.0...auto-common-1.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: com.google.auto.service:auto-service
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 3, 2021
    Configuration menu
    Copy the full SHA
    8e035a1 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2021

  1. Bump versions.errorprone from 2.9.0 to 2.10.0 (#2466)

    * Bump versions.errorprone from 2.9.0 to 2.10.0
    
    Bumps `versions.errorprone` from 2.9.0 to 2.10.0.
    
    Updates `error_prone_core` from 2.9.0 to 2.10.0
    - [Release notes](https://github.com/google/error-prone/releases)
    - [Commits](google/error-prone@v2.9.0...v2.10.0)
    
    Updates `error_prone_test_helpers` from 2.9.0 to 2.10.0
    - [Release notes](https://github.com/google/error-prone/releases)
    - [Commits](google/error-prone@v2.9.0...v2.10.0)
    
    ---
    updated-dependencies:
    - dependency-name: com.google.errorprone:error_prone_core
      dependency-type: direct:production
      update-type: version-update:semver-minor
    - dependency-name: com.google.errorprone:error_prone_test_helpers
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * Fix compilation error
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Tim van der Lippe <[email protected]>
    dependabot[bot] and TimvdLippe authored Nov 5, 2021
    Configuration menu
    Copy the full SHA
    584504e View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Configuration menu
    Copy the full SHA
    3635ac3 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. Bump versions.bytebuddy from 1.12.0 to 1.12.1 (#2472)

    Bumps `versions.bytebuddy` from 1.12.0 to 1.12.1.
    
    Updates `byte-buddy` from 1.12.0 to 1.12.1
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.12.0...byte-buddy-1.12.1)
    
    Updates `byte-buddy-agent` from 1.12.0 to 1.12.1
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.12.0...byte-buddy-1.12.1)
    
    Updates `byte-buddy-android` from 1.12.0 to 1.12.1
    - [Release notes](https://github.com/raphw/byte-buddy/releases)
    - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
    - [Commits](raphw/byte-buddy@byte-buddy-1.12.0...byte-buddy-1.12.1)
    
    ---
    updated-dependencies:
    - dependency-name: net.bytebuddy:byte-buddy
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: net.bytebuddy:byte-buddy-agent
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: net.bytebuddy:byte-buddy-android
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 10, 2021
    Configuration menu
    Copy the full SHA
    a58dcc5 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2021

  1. Bump appcompat from 1.3.1 to 1.4.0 (#2477)

    Bumps appcompat from 1.3.1 to 1.4.0.
    
    ---
    updated-dependencies:
    - dependency-name: androidx.appcompat:appcompat
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 17, 2021
    Configuration menu
    Copy the full SHA
    d373357 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2021

  1. Disable memory tests (#2480)

    Suspected culprit of #2478
    based on a Gradle build scan.
    TimvdLippe authored Nov 19, 2021
    Configuration menu
    Copy the full SHA
    b72a0a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    102cc38 View commit details
    Browse the repository at this point in the history
  3. Add annotation to mark a type as DoNotMock (#1833)

    Mocking types that users not own [1] or are severely complicating test
    logic [2] leads to brittle or wrong tests. In particular, the
    StackOverflow answer is wrong, as the contract of java.util.Map is
    violated. When a new key is added to the Map, the stubbed return would be wrong.
    In Google we have used the DoNotMock annotation via ErrorProne [3]
    to annotate these types, as well as an internal list of types that can't
    be mocked (this includes several java.util types). We are using a custom
    Mockmaker to enforce this on run-time.
    
    Based on our successful experience with DoNotMock (we have seen a large
    reduction in bad/broken tests for types involved), we are proposing to
    open source this into Mockito itself.
    
    The DoNotMock annotation can be added to any type, e.g. classes and
    interfaces. If, in the type hierarchy of the class-to-be-mocked, there
    is a type that is annotated with DoNotMock, Mockito will throw a
    DoNotMockException.
    
    This would help preventing issues such as #1827 and #1734 which is
    in-line with the guidance on our wiki [1]. A follow-up change would
    allow us to define external types (like the java.util types) that can't
    be mocked. (We can't add the annotation to the types, as they live in the
    JDK instead.)
    
    This PR also introduces the DoNotMockEnforcer interface which users can override
    to implement their special handling of types annotated with DoNotMock.
    
    [1]: https://github.com/mockito/mockito/wiki/How-to-write-good-tests#dont-mock-a-type-you-dont-own
    [2]: https://stackoverflow.com/a/15820143
    [3]: https://errorprone.info/api/latest/com/google/errorprone/annotations/DoNotMock.html
    TimvdLippe authored Nov 19, 2021
    Configuration menu
    Copy the full SHA
    ebc1685 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2c95eb0 View commit details
    Browse the repository at this point in the history
Loading