Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 2V0-72.22 All Questions

View all questions & answers for the 2V0-72.22 exam

Exam 2V0-72.22 topic 1 question 4 discussion

Actual exam question from VMware's 2V0-72.22
Question #: 4
Topic #: 1
[All 2V0-72.22 Questions]

Which option is true about use of mocks in a Spring Boot web slice test? (Choose the best answer.)

  • A. Mocking a Spring Bean requires annotating it with @MockBean annotation.
  • B. If a Spring Bean already exists in the web slice test spring context, it cannot be mocked.
  • C. Mocks cannot be used in a Spring Boot web slice test.
  • D. Mocking a Spring Bean requires annotating it with @Mock annotation.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
PRASAD180
7 months, 1 week ago
C is crt
upvoted 1 times
...
james2033
9 months, 1 week ago
The question may be incorrect. https://spring.io/blog/2016/08/30/custom-test-slice-with-spring-boot-1-4
upvoted 1 times
...
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.

SaveCancel
Loading ...