packages
packages copied to clipboard
[in_app_pur]: Bump org.mockito:mockito-core from 4.7.0 to 5.1.1 in /packages/in_app_purchase/in_app_purchase_android/android
Bumps org.mockito:mockito-core from 4.7.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
- 2023-01-30 - 1 commit(s) by Andriy Redko
- StackWalker.Option not found on Mockito 5.1.0 [(#2891)](mockito/mockito#2891)
- StackWalker.Option not found on Mockito 5.1.0 [(#2890)](mockito/mockito#2890)
v5.1.0
Changelog generated by Shipkit Changelog Gradle Plugin
5.1.0
- 2023-01-29 - 12 commit(s) by Andriy Redko, Ashley, Róbert Papp, Stephan Schroevers, Tim te Beek, dependabot[bot]
- Fixes some mistakes and missing details in documentation [(#2889)](mockito/mockito#2889)
- Bump com.diffplug.spotless from 6.13.0 to 6.14.0 [(#2888)](mockito/mockito#2888)
- Clean up JDK-8 related code [(#2883)](mockito/mockito#2883)
- Feat: reified mock overloads [(#2882)](mockito/mockito#2882)
- Clean up JDK-8 related code [(#2879)](mockito/mockito#2879)
- Bump assertj-core from 3.24.1 to 3.24.2 [(#2875)](mockito/mockito#2875)
- Make sure the tests use mock maker with intended member accessor [(#2872)](mockito/mockito#2872)
- Bump com.diffplug.spotless from 6.12.1 to 6.13.0 [(#2871)](mockito/mockito#2871)
- Remove broken link from
CONTRIBUTING.md[(#2870)](mockito/mockito#2870)- Update outdated badge 3.x to 5.x [(#2869)](mockito/mockito#2869)
- Broken link in
CONTRIBUTING.md[(#2868)](mockito/mockito#2868)- Set current version to 5.x in README and highlight changes [(#2867)](mockito/mockito#2867)
- Annotate
Mockito#{mock,spy}(T... reified)with@SafeVarargs[(#2866)](mockito/mockito#2866)- Make sure the tests use mock maker with intended member accessor [(#2855)](mockito/mockito#2855)
- Improve examples for InOrder [(#2843)](mockito/mockito#2843)
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-inlineBack 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
@retawho implemented this change.Note: this does not affect
mockito-androidnor testing on Android.When should I still be using the subclass mockmaker?
... (truncated)
Commits
50b21cfStackWalker.Option not found on Mockito 5.1.0 (#2891)19ab3eaFixes some mistakes and missing details in documentation (#2889)b47bab2Bump com.diffplug.spotless from 6.13.0 to 6.14.0 (#2888)4775c67Clean up JDK-8 related code (#2883)91223f8Feat: reified mock overloads (#2882)96452faMake sure the tests use mock maker with intended member accessor (#2872)1418769Bump assertj-core from 3.24.1 to 3.24.2 (#2875)f4d7c34Bump com.diffplug.spotless from 6.12.1 to 6.13.0 (#2871)23e344eRemove broken link fromCONTRIBUTING.md(#2870)f2a47c3Improve examples for InOrder (#2843)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).
If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?
Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.
Superseded by #3446.