Campoie / rest-assured

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

Error message when mime-type is not supported is wrong #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It says e.g. 
java.lang.IllegalStateException: Expected response to be verified as JSON, HTML 
or XML but content-type 'text/plain' is not supported out of the box.
Try registering a custom parser using:
   RestAssured.registerParser(<parser type>, "text/plain");
.. but should be:

   RestAssured.registerParser("text/plain", <parser type>);

Original issue reported on code.google.com by johan.ha...@gmail.com on 8 Sep 2011 at 12:33

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 9 Sep 2011 at 7:40