Which two statements are true regarding @DataJpaTest? (Choose two.)
Which two statements are true regarding @DataJpaTest? (Choose two.)
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.
C . It can be used for testing both JPA components and NoSQL components.
D . It auto-configures a TestEntityManager bean.
E . It can be used for testing JdbcTemplate.
Answer: B,D
Explanation:
Reference: https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/test/autoconfigure/orm/jpa/DataJpaTest.html
Latest 2V0-72.22 Dumps Valid Version with 60 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments