EB-8: Document blocker - @MockBean not deprecated in Spring Boot 3.3.3 #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket
EB-8: Update test code for deprecated test annotations
Summary
This PR documents a critical blocker for ticket EB-8. After comprehensive investigation across all branches, I've determined that @MockBean and @SpyBean are NOT deprecated in Spring Boot 3.3.3. These annotations only become deprecated in Spring Boot 3.4.0+, and the replacement annotations do not exist in the current version.
Investigation Results
Comprehensive Search Performed
Key Findings
Current State:
Required for Implementation:
@MockitoBean,@MockitoSpyBean(only available in 3.4+)org.springframework.test.context.bean.override.mockito(doesn't exist in 3.3.3)Annotation Locations Found
devin/1759413280-expand-test-coveragesrc/test/java/com/example/bankapp/controller/BankControllerTest.java@MockBeandevin/1759408856-mba-307-controller-testssrc/test/java/com/example/bankapp/controller/BankControllerTest.java@MockBeanBlocker Status
This ticket is BLOCKED and cannot proceed until:
Why This Is Blocked
@MockitoBeanand@MockitoSpyBeanannotations don't exist in 3.3.3Documentation Added
This PR adds comprehensive blocker analysis documentation:
EB-8-BLOCKER-ANALYSIS.mdRecommendation
Immediate Actions:
Post-EB-1 Actions:
Testing
@MockBeanannotationsRelated Issues
Link to Devin run: https://app.devin.ai/sessions/1e8f2f80a7654994805031082093fdc6
Requested by: Alex Peng (alex.peng@windsurf.com) / @alexjpeng