Exam 2v0-7222 All QuestionsBrowse all questions from this exam
Question 62

Which two options are application slices that can be tested with Spring Boot Testing? (Choose two.)

    Correct Answer: A, C

    In the context of Spring Boot Testing, application slices refer to specific layers or components of an application that can be isolated and tested. Repository refers to the data access layer, and Web refers to the web layer, both of which are common targets for testing in Spring Boot applications. Testing repositories involves verifying the correctness of data interactions, while testing the web layer involves ensuring the functionality of web endpoints. Both of these slices are well-supported by Spring Boot testing annotations and configurations.

Discussion
2211094Options: AC

AC is correct answer.

james2033Option: A

The question is not complete. https://www.diffblue.com/blog/java/software%20development/testing/spring-boot-test-slices-overview-and-usage/