Let’s share what is the best answer to this interview question.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Leone Costa
WebMvcTest is used for unit testing Spring MVC applications. As the name suggests, it focuses entirely on Spring MVC components.
For example,
@WebMvcTest(value = ToTestController.class, secure = false):
Here, the objective is to only launch ToTestController. Until the unit test has been executed, other mappings and controllers will not be launched.