ExamGecko
Question list
Search
Search

Question 42 - 2V0-72.22 discussion

Report
Export

Which two statements are true regarding @DataJpaTest? (Choose two.)

A.
TestEntityManager provides all methods that are provided by EntityManager and more.
Answers
A.
TestEntityManager provides all methods that are provided by EntityManager and more.
B.
If an embedded database is on the classpath, it will be used to configure a DataSource by default.
Answers
B.
If an embedded database is on the classpath, it will be used to configure a DataSource by default.
C.
It can be used for testing both JPA components and NoSQL components.
Answers
C.
It can be used for testing both JPA components and NoSQL components.
D.
It auto-configures a TestEntityManager bean.
Answers
D.
It auto-configures a TestEntityManager bean.
E.
It can be used for testing JdbcTemplate.
Answers
E.
It can be used for testing JdbcTemplate.
Suggested answer: B, D

Explanation:

Reference: https://docs.spring.io/springboot/docs/current/api/org/springframework/boot/test/autoconfigure/ orm/jpa/DataJpaTest.html

asked 16/09/2024
Johnny Oostdijk
24 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first