given().log().all().contentType(ContentType.JSON).parameters("country", "sweden").expect().statusCode(201)
.when().post("http://order-statistics.testing.qfdev.net:31010/cities");Request method: POST
Request path: http://order-statistics.testing.qfdev.net:31010/cities
Proxy: <none>
Request params: country=sweden
Query params: <none>
Form params: <none>
Path params: <none>
Multiparts: <none>
Headers: Content-Type=application/json
Cookies: <none>
Body: <none>
FAILED: testGetSingleUser
java.lang.AssertionError: 1 expectation failed.
Expected status code <201> doesn't match actual status code <400>.--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HTTP/1.1 400 Bad Request
Server: nginx/1.1.19
Date: Tue, 07 Oct 2014 09:29:57 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.10-1ubuntu3.14
"Invalid JSON content"
FAILED: testGetSingleUser
java.lang.AssertionError: 1 expectation failed.
Expected status code <201> doesn't match actual status code <400>.