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

Method decodes

json/src/test/java/feign/json/JsonCodecTest.java:61–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 @Test
62 void decodes() throws IOException {
63 try (InputStream input = getClass().getResourceAsStream("/fixtures/contributors.json")) {
64 byte[] response = toByteArray(input);
65 mockClient.ok(HttpMethod.GET, "/repos/openfeign/feign/contributors", response);
66 JSONArray contributors = github.contributors("openfeign", "feign");
67 assertThat(contributors.toList()).hasSize(30);
68 contributors.forEach(contributor -> ((JSONObject) contributor).getString("login"));
69 }
70 }
71
72 @Test
73 void encodes() {

Callers

nothing calls this directly

Calls 4

okMethod · 0.80
contributorsMethod · 0.65
toByteArrayMethod · 0.45
assertThatMethod · 0.45

Tested by

no test coverage detected