Skip to content

[inject-test] Generate Method Handle Lookups #775

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

Merged
merged 5 commits into from
Mar 11, 2025

Conversation

SentryMan
Copy link
Collaborator

Since mockito internals are now forbidden, generate a lookup class and use VarHandles

  • use VarHandle for getting/setting test fields
  • adds a new processor to generate test lookups
  • adds new SPI to inject test

dependabot bot and others added 3 commits March 10, 2025 05:15
Bumps the dependencies group with 4 updates: [net.bytebuddy:byte-buddy](https://github.com/raphw/byte-buddy), [net.bytebuddy:byte-buddy-agent](https://github.com/raphw/byte-buddy), [org.mockito:mockito-core](https://github.com/mockito/mockito) and [org.mockito:mockito-junit-jupiter](https://github.com/mockito/mockito).


Updates `net.bytebuddy:byte-buddy` from 1.17.1 to 1.17.2
- [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.17.1...byte-buddy-1.17.2)

Updates `net.bytebuddy:byte-buddy-agent` from 1.17.1 to 1.17.2
- [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.17.1...byte-buddy-1.17.2)

Updates `org.mockito:mockito-core` from 5.15.2 to 5.16.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v5.15.2...v5.16.0)

Updates `org.mockito:mockito-junit-jupiter` from 5.15.2 to 5.16.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v5.15.2...v5.16.0)

Updates `org.mockito:mockito-junit-jupiter` from 5.15.2 to 5.16.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v5.15.2...v5.16.0)

---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: net.bytebuddy:byte-buddy-agent
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: org.mockito:mockito-junit-jupiter
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: org.mockito:mockito-junit-jupiter
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
Revert "start"

This reverts commit 4bab305.

structure
@SentryMan SentryMan added this to the 11.3 milestone Mar 11, 2025
@SentryMan SentryMan self-assigned this Mar 11, 2025
@SentryMan SentryMan requested a review from rbygrave March 11, 2025 03:02
@SentryMan SentryMan enabled auto-merge (squash) March 11, 2025 03:06
@SentryMan SentryMan changed the title [inject Test] Generate Method Handle Lookups [inject-test] Generate Method Handle Lookups Mar 11, 2025
@SentryMan SentryMan merged commit c2317ad into avaje:master Mar 11, 2025
7 checks passed
@rbygrave
Copy link
Contributor

Nice work by the way!!

@SentryMan SentryMan deleted the lookup branch March 12, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants