I have reviewed this question over again and it seems that B and C are the most likely of answers due by process of illumination.
A is incorrect for obvious reasons
B is correct because @SpringBootTest *OR* @SpringJUnitConfig can be used. I had to wrong in my comment below. That OR makes a big difference.
C is correct as Mockito Spy is not supported (only by Spring Framework), but Mockito SpyBean is supported by default.
D is incorrect for the same reason as specified in my comment below.
E is incorrect for the same reason as specified in my comment below.
It seems that C . It is a very tricky question. The Spring AND Spring Boot is where the trick lies.
A) INCORRECT: Of course EasyBox is a dependency that is not out of the box.
B) INCORRECT: If you consider Spring AND Spring Boot. @SpringBootTest and @SpringJUnitConfig both work in a Spring Boot application, but you cannot use @SpringBootTest in a plain Spring application.
C) CORRECT: Mockito spy does come with Spring Boot, but it isn't supported by defualt.
D) INCORRECT: spring-boot-starter-test does in fact provide annotations for @Mock and @MockBean, but spring-test by itself doesn't.
E) INCORRECT: Only integration testing are supported by both. Slice testing is only a concept in Spring Boot, not in plain Spring.
E is not correct
While integration testing and slice testing are both supported in Spring and Spring Boot, they are not both supported by default using a single testing annotation.
Integration Testing: Integration testing with Spring is supported using @SpringBootTest or @SpringJUnitConfig.
Slice Testing: Slice testing is performed using specialized annotations like @WebMvcTest, @DataJpaTest, etc. These annotations load only a part of the application context to focus
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
2211094
4 months, 3 weeks agostefumies
1 month ago2211094
5 months, 2 weeks agoAzuni
1 year, 3 months agoAzuni
1 year, 3 months agoqqoo
1 year, 4 months agoTolo01
1 year, 3 months agorhuanca
1 year, 8 months ago