You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by dependabot on 2023/01/30 01:52:36 UTC

[GitHub] [maven-wrapper] dependabot[bot] opened a new pull request, #88: Bump mockito-core from 4.11.0 to 5.1.0

dependabot[bot] opened a new pull request, #88:
URL: https://github.com/apache/maven-wrapper/pull/88

   Bumps [mockito-core](https://github.com/mockito/mockito) from 4.11.0 to 5.1.0.
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a href="https://github.com/mockito/mockito/releases">mockito-core's releases</a>.</em></p>
   <blockquote>
   <h2>v5.1.0</h2>
   <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
   <h4>5.1.0</h4>
   <ul>
   <li>2023-01-29 - <a href="https://github.com/mockito/mockito/compare/v5.0.0...v5.1.0">12 commit(s)</a> by Andriy Redko, Ashley, Róbert Papp, Stephan Schroevers, Tim te Beek, dependabot[bot]</li>
   <li>Fixes some mistakes and missing details in documentation [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2889">#2889</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2889">mockito/mockito#2889</a>)</li>
   <li>Bump com.diffplug.spotless from 6.13.0 to 6.14.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2888">#2888</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2888">mockito/mockito#2888</a>)</li>
   <li>Clean up JDK-8 related code [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2883">#2883</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2883">mockito/mockito#2883</a>)</li>
   <li>Feat: reified mock overloads [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2882">#2882</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2882">mockito/mockito#2882</a>)</li>
   <li>Clean up JDK-8 related code [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2879">#2879</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2879">mockito/mockito#2879</a>)</li>
   <li>Bump assertj-core from 3.24.1 to 3.24.2 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2875">#2875</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2875">mockito/mockito#2875</a>)</li>
   <li>Make sure the tests use mock maker with intended member accessor [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2872">#2872</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2872">mockito/mockito#2872</a>)</li>
   <li>Bump com.diffplug.spotless from 6.12.1 to 6.13.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2871">#2871</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2871">mockito/mockito#2871</a>)</li>
   <li>Remove broken link from <code>CONTRIBUTING.md</code> [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2870">#2870</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2870">mockito/mockito#2870</a>)</li>
   <li>Update outdated badge 3.x to 5.x [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2869">#2869</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2869">mockito/mockito#2869</a>)</li>
   <li>Broken link in <code>CONTRIBUTING.md</code> [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2868">#2868</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2868">mockito/mockito#2868</a>)</li>
   <li>Set current version to 5.x in README and highlight changes [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2867">#2867</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2867">mockito/mockito#2867</a>)</li>
   <li>Annotate <code>Mockito#{mock,spy}(T... reified)</code> with <code>@SafeVarargs</code> [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2866">#2866</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2866">mockito/mockito#2866</a>)</li>
   <li>Make sure the tests use mock maker with intended member accessor [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2855">#2855</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2855">mockito/mockito#2855</a>)</li>
   <li>Improve examples for InOrder [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2843">#2843</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2843">mockito/mockito#2843</a>)</li>
   </ul>
   <h2>v5.0.0</h2>
   <h1>Mockito 5: prepare for future JDK versions</h1>
   <p>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.</p>
   <h2>Switch the default mockmaker to <code>mockito-inline</code></h2>
   <p>Back in Mockito 2.7.6, we published a new mockmaker based on the &quot;inline bytecode&quot; 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 &quot;real&quot; 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.</p>
   <p>Massive thanks to community member <a href="https://github.com/reta"><code>@​reta</code></a> who implemented this change.</p>
   <p>Note: this does not affect <code>mockito-android</code> nor testing on Android.</p>
   <h3>When should I still be using the subclass mockmaker?</h3>
   <p>There are legitimate remaining use cases for the subclass mockmaker.
   For example, on the Graal VM's native image, the inline mockmaker will not work and the subclass mockmaker is the appropriate choice.
   Additionally, if you would like to avoid mocking final classes, using the subclass mockmaker is a possibibility.
   Note however that if you solely want to use the subclass mockmaker to avoid mocking final, you will run into the above mentioned issues on JDK 17+.
   We want to leave this choice up to our users, which is why we will keep on supporting the subclass mockmaker.</p>
   <p>If you want to use the subclass mockmaker instead, you can use the new <code>mockito-subclass</code> artifact (published <a href="https://search.maven.org/artifact/org.mockito/mockito-subclass">on Maven Central</a> along with all our other artifacts).</p>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a href="https://github.com/mockito/mockito/commit/19ab3ea8389d215621b256e055987df204f400e4"><code>19ab3ea</code></a> Fixes some mistakes and missing details in documentation (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2889">#2889</a>)</li>
   <li><a href="https://github.com/mockito/mockito/commit/b47bab2970a7f9c782527ed90da2a6668f25409c"><code>b47bab2</code></a> Bump com.diffplug.spotless from 6.13.0 to 6.14.0 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2888">#2888</a>)</li>
   <li><a href="https://github.com/mockito/mockito/commit/4775c67fe3569bbb735877e101b5f8a7889788f9"><code>4775c67</code></a> Clean up JDK-8 related code (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2883">#2883</a>)</li>
   <li><a href="https://github.com/mockito/mockito/commit/91223f830552ce3bb5daf7095f4f30767e072b96"><code>91223f8</code></a> Feat: reified mock overloads (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2882">#2882</a>)</li>
   <li><a href="https://github.com/mockito/mockito/commit/96452fa7fb1a297323dfd998953489deeca64e28"><code>96452fa</code></a> Make sure the tests use mock maker with intended member accessor (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2872">#2872</a>)</li>
   <li><a href="https://github.com/mockito/mockito/commit/1418769a9f89060f7035a48094d0bb2eba1e0ec5"><code>1418769</code></a> Bump assertj-core from 3.24.1 to 3.24.2 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2875">#2875</a>)</li>
   <li><a href="https://github.com/mockito/mockito/commit/f4d7c346b1783c4a14aa8905ec96aa16f9f2fdd5"><code>f4d7c34</code></a> Bump com.diffplug.spotless from 6.12.1 to 6.13.0 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2871">#2871</a>)</li>
   <li><a href="https://github.com/mockito/mockito/commit/23e344ec7b7c11743331ace30f26c21da12767ba"><code>23e344e</code></a> Remove broken link from <code>CONTRIBUTING.md</code> (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2870">#2870</a>)</li>
   <li><a href="https://github.com/mockito/mockito/commit/f2a47c35b8b16a8b1c560b9d93bc3cce62a3e310"><code>f2a47c3</code></a> Improve examples for InOrder (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2843">#2843</a>)</li>
   <li><a href="https://github.com/mockito/mockito/commit/484de454af8a12da8e2944ab889a262caac73ae0"><code>484de45</code></a> Update release badge to 5.x (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2869">#2869</a>)</li>
   <li>Additional commits viewable in <a href="https://github.com/mockito/mockito/compare/v4.11.0...v5.1.0">compare view</a></li>
   </ul>
   </details>
   <br />
   
   
   [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.mockito:mockito-core&package-manager=maven&previous-version=4.11.0&new-version=5.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
   
   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-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   <details>
   <summary>Dependabot commands and options</summary>
   <br />
   
   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)
   
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-wrapper] dependabot[bot] closed pull request #88: Bump mockito-core from 4.11.0 to 5.1.0

Posted by dependabot.
dependabot[bot] closed pull request #88: Bump mockito-core from 4.11.0 to 5.1.0
URL: https://github.com/apache/maven-wrapper/pull/88


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-wrapper] dependabot[bot] commented on pull request #88: Bump mockito-core from 4.11.0 to 5.1.0

Posted by dependabot.
dependabot[bot] commented on PR #88:
URL: https://github.com/apache/maven-wrapper/pull/88#issuecomment-1409593940

   Superseded by #90.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org