ExamGecko
Question list
Search
Search

Question 52 - 2V0-72.22 discussion

Report
Export

Which two annotations indicate that the transaction for a transactional test method should be committed after the test method has completed? (Choose two.)

A.
@SqlMergeMode(false)
Answers
A.
@SqlMergeMode(false)
B.
@Rollback(false)
Answers
B.
@Rollback(false)
C.
@Commit
Answers
C.
@Commit
D.
@Sql(alwaysCommit=true)
Answers
D.
@Sql(alwaysCommit=true)
E.
@Transactional(commit=true)
Answers
E.
@Transactional(commit=true)
Suggested answer: B, C

Explanation:

Reference: https://stackoverflow.com/questions/9817388/junit-tests-always-rollback-thetransactions

asked 16/09/2024
Sandesh Somaiah
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first