MCPcopy Index your code
hub / github.com/OpenFeign/feign / responseWithText

Method responseWithText

core/src/test/java/feign/FeignTest.java:961–968  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

959 }
960
961 private Response responseWithText(String text) {
962 return Response.builder()
963 .body(text, Util.UTF_8)
964 .status(200)
965 .request(Request.create(HttpMethod.GET, "/api", Collections.emptyMap(), null, Util.UTF_8))
966 .headers(new HashMap<>())
967 .build();
968 }
969
970 @Test
971 void mapAndDecodeExecutesMapFunction() throws Exception {

Calls 7

builderMethod · 0.95
createMethod · 0.95
headersMethod · 0.65
bodyMethod · 0.65
buildMethod · 0.45
requestMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected