(String text)
| 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 { |