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 80 discussion

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

Which two statements are true regarding @WebMvcTest? (Choose two.)

  • A. It auto-configures a MockMvc.
  • B. It will only scan for @Controller beans in the source code.
  • C. It is used for testing Spring MVC components such as @Controller with a running server.
  • D. Typically it is used in combination with @MockBean when there is a dependency bean to be mocked.
  • E. It is typically used with @ExtendWith(MockitoExtension.class) in JUnit 5.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
2211094
5 months, 1 week ago
Sorry CD is not correct but rather AD, why because @WebMvcTest is specifically designed for testing Spring MVC components without starting a full application server
upvoted 1 times
...
2211094
5 months, 1 week ago
CD is correct answer.
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 ...