Skip to content

Improve diagnostics when a Bean Override cannot be selected by type #34004

Closed as not planned
@sbrannen

Description

@sbrannen

Overview

Whenever a bean override (such as for @TestBean, @MockitoBean, and @MockitoSpyBean) cannot be selected "by type", we should improve diagnostics for users by pointing out (in the exception's message) that the type selection might have failed because the runtime type of the target bean could not be inferred.

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions