我得到以下JSON响应REST服务,但没有外部数组的名称标签
.htaccess
我的POJO类如下:
[
{
"limitId": 4,
"limitValue": "150",
"product": "ALL",
"timeFrame": "D",
"description": "Deposit Limit",
"limitName": "DEPOSIT_LIMIT"
},
{
"limitId": 12,
"limitValue": "15000",
"product": "ALL",
"timeFrame": "M",
"description": "Deposit Limit",
"limitName": "DEPOSIT_LIMIT"
},
{
"limitId": 9,
"limitValue": "1000",
"product": "ALL",
"timeFrame": "W",
"description": "Maximum Wager Amount",
"limitName": "MAX_WAGER_AMT"
},
{
"limitId": 3,
"limitValue": "12",
"product": "ALL",
"timeFrame": "D",
"description": "Maximum Playing Time",
"limitName": "MAX_PLAY_TIME"
},
{
"limitId": 13,
"limitValue": "2500",
"acknowledgementRequired": false,
"timeFrame": "Y",
"description": "Acknowledgement of max lifetime deposit",
"limitName": "LIFETIME_DEPOSIT_ACK"
},
{
"limitId": 14,
"limitValue": "2500",
"acknowledgementRequired": false,
"timeFrame": "F",
"description": "KYC documents verified",
"limitName": "DOCUMENT_VERIFICATION"
}
]
我需要遍历响应数组,并比较bean中的testResult属性标记中提到的结果以进行testxml中的测试
如何设计测试以迭代响应并比较预期结果