Validar uma Lista Json com RestAssured

Viewed 8

I need validate a json list with restassured, but I'm not success.

I have a response Get with a items list, I need validate each item and yours attributes, but my code only validate one item.

What i can use for make this action?

Follow my response:

{
    "content": [
        {
            "valueId": "632a308898f9f03de97bcf85",
            "configId": "632a308898f9f03de97bcf84",
            "dataBase": "BANK",
            "value": 19991,
            "status": "PENDING",
        },
        {
            "valueId": "632a308998f9f03de97bcf86",
            "configId": "632a308898f9f03de97bcf84",
            "dataBase": "BANK",
            "value": 124574,
            "status": "PENDING",
        }
    ],
    "pageable": "INSTANCE",
    "last": true,
    "totalPages": 1,
    "totalElements": 2,
    "size": 2,
    "number": 0,
    "numberOfElements": 2,
    "first": true,
    "empty": false
}
0 Answers
Related