Passing multiple object in dataprovider in Testng

When we want to pass an object in TestNg data provider we use to follow the below steps.






But This can be rewritten in this way for a cleaner code 




Convert resultset object to list of map

Convert the resultset object to list of map In some cases, while we doing API automation, we need to fetch the value from the DB and hav...