Which of the below statements are valid for testing a REST controller class using Spring Boot testing? [Choose two]

Add @WebMvcTest and @SpringBootTest on top of the test class

Add only @WebMvcTest on top of the test class

Add only @SpringBootTest on top of the test class

Use @TestConfiguration to define MockMvc bean

Verified Answer
Correct Option - ae

To get all Infosys Certified Spring Boot Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram