In Spring Boot, which framework is primarily used for mocking objects in unit tests?
- EasyMock
- JUnit
- Mockito
- TestNG
Mockito is a popular framework used for mocking objects in unit tests in Spring Boot applications. It allows you to create mock objects and define their behavior during testing.
Loading...
Related Quiz
- The JVM option ________ can be optimized to allocate more memory to a Spring Boot application.
- What is the primary use of WebFlux in a Spring Boot application?
- The _____ annotation in Spring Boot is used to provide global exception handling across all @Controller classes.
- In Spring Boot, how do you handle conflicts between properties defined in the application properties file and environment variables?
- You need to develop a Spring Boot application where the requirement is to have different request mappings based on the user's role. How would you design the request mappings and controller methods to fulfill this requirement?