-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Comparing changes
Open a pull request
base repository: mockito/mockito
base: v4.0.0
head repository: mockito/mockito
compare: v4.1.0
- 20 commits
- 26 files changed
- 7 contributors
Commits on Oct 12, 2021
-
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>
Configuration menu - View commit details
-
Copy full SHA for 929188b - Browse repository at this point
Copy the full SHA 929188bView commit details
Commits on Oct 13, 2021
-
Fixes #2389: handle answers in a thread-safe manner (#2444)
Co-authored-by: Mikaël Francoeur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b77aee1 - Browse repository at this point
Copy the full SHA b77aee1View commit details
Commits on Oct 15, 2021
-
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>
Configuration menu - View commit details
-
Copy full SHA for 2697478 - Browse repository at this point
Copy the full SHA 2697478View commit details
Commits on Oct 17, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 29eb4ee - Browse repository at this point
Copy the full SHA 29eb4eeView commit details
Commits on Oct 18, 2021
-
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>
Configuration menu - View commit details
-
Copy full SHA for cca7312 - Browse repository at this point
Copy the full SHA cca7312View commit details
Commits on Oct 21, 2021
-
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>
Configuration menu - View commit details
-
Copy full SHA for dacb492 - Browse repository at this point
Copy the full SHA dacb492View commit details
Commits on Oct 29, 2021
-
Update readme with the latest Mockito version (#2456)
3.x is not the latest release and the readme should point to the removed API.
Configuration menu - View commit details
-
Copy full SHA for 7f1d254 - Browse repository at this point
Copy the full SHA 7f1d254View commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for 7a13759 - Browse repository at this point
Copy the full SHA 7a13759View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for d052721 - Browse repository at this point
Copy the full SHA d052721View commit details
Commits on Oct 30, 2021
-
Fixes #2460: remove a sentence commits to a particular version (#2461)
Because it's not planning on making this change anytime soon
Configuration menu - View commit details
-
Copy full SHA for f54aa92 - Browse repository at this point
Copy the full SHA f54aa92View commit details
Commits on Nov 2, 2021
-
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>
Configuration menu - View commit details
-
Copy full SHA for b37eed8 - Browse repository at this point
Copy the full SHA b37eed8View commit details
Commits on Nov 3, 2021
-
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>
Configuration menu - View commit details
-
Copy full SHA for 8e035a1 - Browse repository at this point
Copy the full SHA 8e035a1View commit details
Commits on Nov 5, 2021
-
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]>
Configuration menu - View commit details
-
Copy full SHA for 584504e - Browse repository at this point
Copy the full SHA 584504eView commit details
Commits on Nov 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3635ac3 - Browse repository at this point
Copy the full SHA 3635ac3View commit details
Commits on Nov 10, 2021
-
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>
Configuration menu - View commit details
-
Copy full SHA for a58dcc5 - Browse repository at this point
Copy the full SHA a58dcc5View commit details
Commits on Nov 17, 2021
-
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>
Configuration menu - View commit details
-
Copy full SHA for d373357 - Browse repository at this point
Copy the full SHA d373357View commit details
Commits on Nov 19, 2021
-
Suspected culprit of #2478 based on a Gradle build scan.
Configuration menu - View commit details
-
Copy full SHA for b72a0a5 - Browse repository at this point
Copy the full SHA b72a0a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 102cc38 - Browse repository at this point
Copy the full SHA 102cc38View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for ebc1685 - Browse repository at this point
Copy the full SHA ebc1685View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c95eb0 - Browse repository at this point
Copy the full SHA 2c95eb0View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v4.0.0...v4.1.0