swangkkb / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Unexpected NPE on testing body(name, matcher) with empty body received #260

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Perform a GET on a resource that returns an 409 with empty body (may also 
work with a 200, did not test)
2. Construct a expect().statusCode(409).body("error", "some text")
3. See it fail with an NPE in token.getType() in parse method of 
ConfigurableJSONSlurper

What is the expected output? What do you see instead?
I would expect to either receive a null value for the property and have the 
assertion fail, or I would expect to have a method on the response spec that 
can check for an empty body.

What version of the product are you using? On what operating system?
1.8.1 on OSX Mavericks

Please provide any additional information below.

Original issue reported on code.google.com by dolf.sta...@gmail.com on 25 Oct 2013 at 4:45

GoogleCodeExporter commented 9 years ago
Thanks for reporting

Original comment by johan.ha...@gmail.com on 12 Nov 2013 at 3:18