()
| 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() { |
nothing calls this directly
no test coverage detected