ExamGecko
Question list
Search
Search

Question 54 - 2V0-72.22 discussion

Report
Export

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

A.
@TestApplicationContext is used to define additional beans or customizations for a test.
Answers
A.
@TestApplicationContext is used to define additional beans or customizations for a test.
B.
Test methods in a @SpringBootTest class are transactional by default.
Answers
B.
Test methods in a @SpringBootTest class are transactional by default.
C.
@SpringBootTest is typically used for integration testing.
Answers
C.
@SpringBootTest is typically used for integration testing.
D.
Test methods annotated with @SpringBootTest will recreate the ApplicationContext.
Answers
D.
Test methods annotated with @SpringBootTest will recreate the ApplicationContext.
E.
@SpringBootTest without any configuration classes expects there is only one class annotated with @SpringBootConfiguration in the application.
Answers
E.
@SpringBootTest without any configuration classes expects there is only one class annotated with @SpringBootConfiguration in the application.
Suggested answer: C, D
asked 16/09/2024
alain giansily
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first