I take confidence - https://code.google.com/p/rest-assured/wiki/Usage My JsonObject looks like this:
{ "id": "12", "employeeInfo": null, "employerInfo": null, "checkDate": 1395093997218, "netAmount": { "amount": 70, "currency": "USD" }, "moneyDistributionLineItems": [ { "mAmount": 100, "employeeBankAccountId": "BankAccount 1" } ], }
How can I send this as part of the parameters using an RST-guaranteed POST? I tried
given().param("key1", "value1").param("key2", "value2").when().post("/somewhere").then(). body(containsString("OK"));
but it does not scale for HUGE objects with nested values. Is there a better approach?
user3431212
source share