Not the bean must be annotated, but the injected bean in the test class, or the bean class needs to be defined in the @MockBeans annotation on test class level
The question may be incorrect. https://spring.io/blog/2016/08/30/custom-test-slice-with-spring-boot-1-4
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ihet
4 days, 11 hours agoquakquak3
3 months, 2 weeks agoPRASAD180
5 months, 1 week agojames2033
7 months, 2 weeks ago