Skip to content

Fix UnnecessarySpringExtensionTest classpath version mismatch#985

Merged
steve-aom-elliott merged 1 commit intomainfrom
fix-unnecessary-spring-extension-test
Apr 1, 2026
Merged

Fix UnnecessarySpringExtensionTest classpath version mismatch#985
steve-aom-elliott merged 1 commit intomainfrom
fix-unnecessary-spring-extension-test

Conversation

@steve-aom-elliott
Copy link
Copy Markdown
Contributor

Summary

  • UnnecessarySpringExtensionTest used unversioned classpath entries (spring-boot-test, spring-boot-test-autoconfigure) which resolved to mismatched versions (2.x boot-test with 3.4.x autoconfigure), causing SpringBootTest type info to be missing/malformed
  • Pins both entries to 2.* since this is a Spring Boot 2 recipe

Test plan

  • All 23 UnnecessarySpringExtensionTest tests pass (5 were previously failing on main)

The test used unversioned classpath entries for spring-boot-test and
spring-boot-test-autoconfigure, which could resolve to mismatched
versions (e.g. 2.x test with 3.4.x autoconfigure). Pin both to 2.x
since this is a Spring Boot 2 recipe.
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Apr 1, 2026
@steve-aom-elliott steve-aom-elliott merged commit f5be3e6 into main Apr 1, 2026
1 check passed
@steve-aom-elliott steve-aom-elliott deleted the fix-unnecessary-spring-extension-test branch April 1, 2026 18:25
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant