Suppose in Integration Test, I need to check the values returned in my Test against the result that is stored in DB. I am using Rest-Assured for Integration Testing. So any help on how to do it? Reference :-
Rest-Assured don't allow to check data in DB ( at least not directly ). It's just for api response testing and if you want to check if data has been well store in DB you have to use basic testing method of your used language or technogy, and just check data after fetching them.
Of course you will need to have a good db configuration for your integration test ( as example testcontainers can be a good way for that ). Hope this could be helpful.