Skip to content

chore: replace deprecated @MockBean with @MockitoBean in DryRunModeTest #113

@MaximumTrainer

Description

@MaximumTrainer

Background

DryRunModeTest.kt uses Spring's @MockBean annotation which is deprecated in Spring Boot 3.4+. This generates compiler warnings on every test run.

Tasks

  • Replace @MockBean annotations in DryRunModeTest with @MockitoBean (Spring Boot 3.4+)
  • Verify ./gradlew test passes with zero deprecation warnings related to MockBean

References

Files

  • backend/src/test/kotlin/com/factstore/DryRunModeTest.kt

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions