The _____ utility in Spring Boot allows for creating disposable instances of common databases, web browsers, or anything that can run in a Docker container, for testing.
- @Disposable
- @DockerTest
- @Profile
- @TestContainers
Spring Boot, using the @TestContainers annotation, allows you to create disposable instances of databases, web browsers, or other services in Docker containers for testing purposes. It simplifies the process of setting up and tearing down these resources for testing.
Loading...
Related Quiz
- How can you configure an array of values using the YAML configuration file in Spring Boot?
- In what scenario would you prefer to use @Inject over @Autowired for dependency injection?
- Which of the following Spring Data JPA repositories generally provides methods for CRUD operations?
- How can parameterized tests be created using JUnit?
- Which annotation is primarily used in Spring Boot to mark the main class of your application?