VMware vRealize Automation 8.x (2022) — Question 72

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

Answer options

Correct answer: A, D

Explanation

@WebMvcTest is designed to auto-configure a MockMvc, making option A correct. Option D is also right as @WebMvcTest often works with @MockBean to mock dependencies. Options B and C are incorrect because @WebMvcTest can scan for more than just @Controller beans and does not require a running server for testing. Option E is not a typical requirement for using @WebMvcTest.