A is correct as well as D, why A? here is the reason, TestEntityManager extends EntityManager which means it inherits all methods of EntityManager and adds more specialized methods specifically for testing purposes.
A is incorrect because TestEntityManager does not provide all methods that are provided by EntityManager. It only provides a subset of the methods that are relevant for testing.
C is incorrect because @DataJpaTest is specifically designed for testing JPA components. It cannot be used for testing NoSQL components.
E is incorrect because @DataJpaTest cannot be used for testing JdbcTemplate. JdbcTemplate is a different type of data access abstraction that is not related to JPA.
why not A instead of B , because @DataJpaTest does not configure any DataSource by default.
A and D
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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
5 months, 1 week agoTolo01
1 year, 3 months agorhuanca
1 year, 8 months ago