Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add value attribute alias to @MockitoBean and @MockitoSpyBean #33680

Closed
sbrannen opened this issue Oct 10, 2024 · 0 comments
Closed

Add value attribute alias to @MockitoBean and @MockitoSpyBean #33680

sbrannen opened this issue Oct 10, 2024 · 0 comments
Assignees
Labels
in: test Issues in the test module type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

@TestBean currently supports name and value aliases; however, @MockitoBean and @MockitoSpyBean only support a name 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 existing name attributes.

@sbrannen sbrannen added in: test Issues in the test module type: enhancement A general enhancement labels Oct 10, 2024
@sbrannen sbrannen added this to the 6.2.0-RC2 milestone Oct 10, 2024
@sbrannen sbrannen self-assigned this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant