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

@MockitoSpyBean on a JpaRepository broken #33800

Open
romainmoreau opened this issue Oct 26, 2024 · 0 comments
Open

@MockitoSpyBean on a JpaRepository broken #33800

romainmoreau opened this issue Oct 26, 2024 · 0 comments
Assignees
Labels
in: test Issues in the test module status: waiting-for-triage An issue we've not yet triaged or decided on type: regression A bug that is also a regression

Comments

@romainmoreau
Copy link

Here's a demo unit test reproducing the issue: https://github.com/romainmoreau/spy-demo/blob/master/src/test/java/com/example/demo/DemoMockTest.java

The issue happens with Spring Boot 3.4.0-RC1 and it was working with Spring Boot 3.4.0-M3.

Here's the full stack trace: https://github.com/romainmoreau/spy-demo/actions/runs/11532983997/job/32105377666#step:4:2342

It works with Spring Boot 3.4.0-RC1 if Spring Framework is downgraded to 6.2.0-RC1.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 26, 2024
@bclozel bclozel transferred this issue from spring-projects/spring-boot Oct 26, 2024
@bclozel bclozel added in: test Issues in the test module type: regression A bug that is also a regression labels Oct 26, 2024
@sbrannen sbrannen self-assigned this Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module status: waiting-for-triage An issue we've not yet triaged or decided on type: regression A bug that is also a regression
Projects
None yet
Development

No branches or pull requests

4 participants