Which two statements are true regarding Spring Boot Testing? (Choose two.)
Which two statements are true regarding Spring Boot Testing? (Choose two.)
Spring Boot Testing involves specific annotations and configurations to facilitate testing. @SpringBootTest is commonly used for integration testing because it loads the full application context. Additionally, @SpringBootTest without any configuration classes assumes there is only one class annotated with @SpringBootConfiguration in the application context. This ensures that the test class can properly load the application's context.
I think the E answere is correct. see https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/test/context/SpringBootTest.html the @SpringBootTest is not applicable at method level.
BC is correct answer.
A is wrong: there is no @TestApplicationContext annotation in Spring Testing.
I think A and C are the best answer
There is no @TestApplicationContext annotation in Spring Testing.