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

Correct Option - ae

To get all Infosys Certified Spring Boot Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in