File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/main/java/com/cucumber/tutorial/util Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,12 @@ public static PlainHttpResponse from(String content) {
3232 return mapper .readValue (content , PlainHttpResponse .class );
3333 } catch (JsonProcessingException e ) {
3434 throw new RuntimeException ("Cannot convert to PlainHttpResponse object:\n " + content +"\n \n Expected:\n {\n " +
35- " [optional] \" status\" : <object>,\n " +
36- " [optional] \" reason\" : \" <text>\" ,\n " +
37- " [optional] \" body\" : <object>,\n " +
38- " [optional] \" headers\" : <json array> ex: [ {\" h1\" : \" v1\" }, {\" h2\" : \" v2\" } ]\n " +
39- "}" , e ); }
35+ " [optional] \" status\" : <JsonNode>,\n " +
36+ " [optional] \" reason\" : \" <TextNode>\" ,\n " +
37+ " [optional] \" body\" : <JsonNode>,\n " +
38+ " [optional] \" headers\" : <ArrayNode> ex: [ {\" h1\" : \" v1\" }, {\" h2\" : \" v2\" } ]\n " +
39+ "}" , e );
40+ }
4041 }
4142
4243 public static PlainHttpResponse from (ClassicHttpResponse response ) {
You can’t perform that action at this time.
0 commit comments