nerdexam
Broadcom-VMware

2V0-72.22 · Question #65

Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)

The correct answer is B. @SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext. C. Mockito spy is not supported in Spring Boot testing by default. See the full explanation below for the reasoning.

Question

Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)

Options

  • AEasyMock is supported out of the box.
  • B@SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext.
  • CMockito spy is not supported in Spring Boot testing by default.
  • DThe spring-test dependency provides annotations such as @Mock and @MockBean.
  • EIntegration and slice testing are both supported.

How the community answered

(49 responses)
  • A
    6% (3)
  • B
    84% (41)
  • D
    2% (1)
  • E
    8% (4)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice