To simulate HTTP requests and responses in integration tests, Spring Boot provides the _____ class, allowing for testing of controller methods without starting the server.

  • MockMVC
  • MockMvc
  • TestRestTemplate
  • WebMvcConfigurer
Spring Boot provides the MockMvc class, which allows you to simulate HTTP requests and responses for testing controller methods without the need to start a server. It's a crucial tool for integration testing in Spring Boot.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *