Return to site

🍃🎓 SPRING CERTIFICATION QUESTION: In Spring transactional management, _____ is a test annotation that is used to indicate that a test-managed transaction should be committed after the test method has completed.

· spring,java,vcp

🍃🎓 SPRING CERTIFICATION QUESTION: In Spring transactional management, _____ is a test annotation that is used to indicate that a test-managed transaction should be committed after the test method has completed.

* @Transactional

* @Rollback

* @Persist

* @Commit

#spring #certificationquestion #vcp

 

https://www.udemy.com/course/spring-professional-certification-6-full-tests-2v0-7222-a/?referralCode=04B6ED315B27753236AC

@Commit is a test annotation that is used to indicate that a test-managed transaction should be committed after the test method has completed.

When declared as a class-level annotation, @Commit defines the default commit semantics for all test methods within the test class hierarchy or nested class hierarchy.

When declared as a method-level annotation, @Commit defines commit semantics for the specific test method, potentially overriding class-level default commit or rollback semantics.