Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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