Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

build(deps-dev): bump mockito-core from 4.7.0 to 5.1.1 #231

Merged
merged 1 commit into from
Apr 15, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 31, 2023

Bumps mockito-core from 4.7.0 to 5.1.1.

Release notes

Sourced from mockito-core's releases.

v5.1.1

Changelog generated by Shipkit Changelog Gradle Plugin

5.1.1

v5.1.0

Changelog generated by Shipkit Changelog Gradle Plugin

5.1.0

v5.0.0

Mockito 5: prepare for future JDK versions

For a while now, we have seen an increase in problems/incompatibilities with recent versions of the JDK due to our usage of JVM-internal API. Most notably, JDK 17 made some changes which are incompatible with the current subclass mockmaker. Therefore, to prepare for the future of JDK, we are making some core changes to ensure Mockito keeps on working.

Switch the default mockmaker to mockito-inline

Back in Mockito 2.7.6, we published a new mockmaker based on the "inline bytecode" principle. This mockmaker creates mocks manipulating bytecode equivalent within the original class such that its method implementations hook into the normal Mockito machinery. As a comparison, the subclass mockmaker generates "real" subclasses for mocks, to mimic the same behavior. While the approaches are similar, the inline mockmaker avoids certain restrictions that the JDK imposes. For example, it does not violate module boundaries (introduced in JDK 9, but more heavily used in JDK 17) and avoids the leaking of the creation of the subclass.

Massive thanks to community member @​reta who implemented this change.

Note: this does not affect mockito-android nor testing on Android.

When should I still be using the subclass mockmaker?

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mockito-core](https://github.com/mockito/mockito) from 4.7.0 to 5.1.1.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v4.7.0...v5.1.1)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 31, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #231 (f463292) into master (52a2817) will increase coverage by 0.31%.
The diff coverage is 97.48%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #231      +/-   ##
============================================
+ Coverage     96.77%   97.09%   +0.31%     
- Complexity      180      316     +136     
============================================
  Files            17       22       +5     
  Lines           683     1137     +454     
  Branches         41       73      +32     
============================================
+ Hits            661     1104     +443     
- Misses           16       21       +5     
- Partials          6       12       +6     
Impacted Files Coverage Δ
...n/zalopay/benchmark/core/channel/DoneObserver.java 100.00% <ø> (ø)
.../benchmark/core/grpc/DynamicMessageMarshaller.java 100.00% <ø> (ø)
...lopay/benchmark/core/protobuf/ServiceResolver.java 87.50% <85.71%> (-1.79%) ⬇️
...zalopay/benchmark/core/protobuf/ProtocInvoker.java 94.77% <92.59%> (-1.86%) ⬇️
...n/java/vn/zalopay/benchmark/core/ClientCaller.java 94.96% <95.91%> (+0.52%) ⬆️
...lopay/benchmark/core/config/GrpcRequestConfig.java 96.15% <96.15%> (ø)
...main/java/vn/zalopay/benchmark/GRPCSamplerGui.java 98.64% <98.18%> (-1.36%) ⬇️
...rc/main/java/vn/zalopay/benchmark/GRPCSampler.java 100.00% <100.00%> (ø)
...alopay/benchmark/constant/GrpcSamplerConstant.java 100.00% <100.00%> (ø)
...ain/java/vn/zalopay/benchmark/core/ClientList.java 96.29% <100.00%> (+3.43%) ⬆️
... and 16 more

@anhldbk anhldbk merged commit 5967b15 into master Apr 15, 2023
@dependabot dependabot bot deleted the dependabot/maven/org.mockito-mockito-core-5.1.1 branch April 15, 2023 02:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants