Blog Archives

Integration Unit testing Spring Transaction Management

This is an integration testing that tests Spring transaction through service, and DAO layers all the way up to the embedded database like HSQLDB or H2. After commit or rollback, the number of records in the table are verified. The service layer defines the transactional boundaries with the “@Transactional” annotation....

Members Only Content
Log In Register Free Q&As


Unit testing Spring Transaction Management

Unit testing Spring transaction management –> i.e. commit & rollback scenarios as shown below. On a separate post, will do an integration test for the Spring transaction manager. The test class defines the transactional boundaries. Transaction Commit scenario Transaction Rolback scenario… Read more ›...

Members Only Content
Log In Register Free Q&As


Java FAQs to Fast-track & Go places

Big Data Engineer FAQs

Java Interview Q&As

Note that some posts belong to multiple categories.
Top