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

Bump org.mockito:mockito-core from 4.11.0 to 5.1.1 #700

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps org.mockito:mockito-core from 4.11.0 to 5.1.1.

Release notes

Sourced from org.mockito: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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Jan 31, 2023
@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #700 (edf8f7d) into master (04e06b9) will increase coverage by 31.73%.
The diff coverage is n/a.

❗ Current head edf8f7d differs from pull request most recent head 99c281c. Consider uploading reports for the commit 99c281c to get more accurate results

@@              Coverage Diff              @@
##             master     #700       +/-   ##
=============================================
+ Coverage          0   31.73%   +31.73%     
- Complexity        0      224      +224     
=============================================
  Files             0      105      +105     
  Lines             0     2710     +2710     
  Branches          0      288      +288     
=============================================
+ Hits              0      860      +860     
- Misses            0     1767     +1767     
- Partials          0       83       +83     
Impacted Files Coverage Δ
...c/main/java/io/freefair/gradle/util/TaskUtils.java 0.00% <0.00%> (ø)
...o/freefair/gradle/plugins/compress/tasks/LZMA.java 0.00% <0.00%> (ø)
...o/freefair/gradle/plugins/mkdocs/tasks/MkDocs.java 0.00% <0.00%> (ø)
...radle/plugins/maven/javadoc/JavadocUtf8Plugin.java 100.00% <0.00%> (ø)
...efair/gradle/plugins/lombok/tasks/PostCompile.java 0.00% <0.00%> (ø)
...ven/javadoc/linkproviders/JavaEE8LinkProvider.java 0.00% <0.00%> (ø)
...reefair/gradle/plugins/mkdocs/tasks/MkDocsNew.java 0.00% <0.00%> (ø)
.../javadoc/linkproviders/JakartaEE8LinkProvider.java 0.00% <0.00%> (ø)
...r/gradle/plugins/maven/MavenPublishJavaPlugin.java 0.00% <0.00%> (ø)
.../github/dependencies/DependencyManifestPlugin.java 0.00% <0.00%> (ø)
... and 95 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@dependabot dependabot bot force-pushed the dependabot/gradle/org.mockito-mockito-core-5.1.1 branch 9 times, most recently from 5f6be88 to 54d022d Compare February 15, 2023 02:15
@dependabot dependabot bot force-pushed the dependabot/gradle/org.mockito-mockito-core-5.1.1 branch 5 times, most recently from 91a2ecd to 14927eb Compare February 22, 2023 22:56
Bumps [org.mockito:mockito-core](https://github.com/mockito/mockito) from 4.11.0 to 5.1.1.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v4.11.0...v5.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/gradle/org.mockito-mockito-core-5.1.1 branch from 14927eb to 99c281c Compare February 24, 2023 11:54
@larsgrefer larsgrefer merged commit 1ccc662 into master Feb 24, 2023
@dependabot dependabot bot deleted the dependabot/gradle/org.mockito-mockito-core-5.1.1 branch February 24, 2023 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant