I am trying to write a unit test for a method which uses: @Transactional. There are two methods are being called, each is running an update query on two table, if one fails other should not run or rollback.
I need to write a unit test to check if the transactional is working fine or not.
Please assist. Thanks in advance.
mock second call throw exception close transaction check if data was removed