Closed as not planned
Description
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.