Add value
attribute alias to @MockitoBean
and @MockitoSpyBean
#33680
Labels
Milestone
value
attribute alias to @MockitoBean
and @MockitoSpyBean
#33680
@TestBean
currently supportsname
andvalue
aliases; however,@MockitoBean
and@MockitoSpyBean
only support aname
attribute which requires users to type@MockitoBean(name = "userService")
instead of simply@MockitoBean("userService")
.To improve the user experience for common cases, we should introduce new
value
attributes in@MockitoBean
and@MockitoSpyBean
as aliases for the existingname
attributes.The text was updated successfully, but these errors were encountered: