File tree 1 file changed +6
-5
lines changed
src/main/java/com/cucumber/tutorial/util
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) {
32
32
return mapper .readValue (content , PlainHttpResponse .class );
33
33
} catch (JsonProcessingException e ) {
34
34
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
+ }
40
41
}
41
42
42
43
public static PlainHttpResponse from (ClassicHttpResponse response ) {
You can’t perform that action at this time.
0 commit comments