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

Method upperCaseResponseMapper

core/src/test/java/feign/FeignTest.java:949–959  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

947 }
948
949 private ResponseMapper upperCaseResponseMapper() {
950 return (response, _) -> {
951 try {
952 return response.toBuilder()
953 .body(Util.toString(response.body().asReader(UTF_8)).toUpperCase().getBytes())
954 .build();
955 } catch (IOException e) {
956 throw new RuntimeException(e);
957 }
958 };
959 }
960
961 private Response responseWithText(String text) {
962 return Response.builder()

Calls 5

toStringMethod · 0.95
toBuilderMethod · 0.80
bodyMethod · 0.65
asReaderMethod · 0.65
buildMethod · 0.45

Tested by

no test coverage detected