@Test void binaryValue_test() throws IOException { JsonNode jsonNode = mock(JsonNode.class); when(jsonNode.binaryValue()).thenThrow(IOException.class); assertThatThrownBy(()-> JacksonUtil.binaryValue(jsonNode)).isInstanceOf(UncheckedIOException.class); }
public static byte[] binaryValue(JsonNode jsonNode) { try { return jsonNode.binaryValue(); } catch (IOException e) { throw new UncheckedIOException(e); } }
JacksonUtil { public static byte[] binaryValue(JsonNode jsonNode) { try { return jsonNode.binaryValue(); } catch (IOException e) { throw new UncheckedIOException(e); } } }
JacksonUtil { public static byte[] binaryValue(JsonNode jsonNode) { try { return jsonNode.binaryValue(); } catch (IOException e) { throw new UncheckedIOException(e); } } private  JacksonUtil(); }
JacksonUtil { public static byte[] binaryValue(JsonNode jsonNode) { try { return jsonNode.binaryValue(); } catch (IOException e) { throw new UncheckedIOException(e); } } private  JacksonUtil(); static JsonNode readTree(ObjectMapper objectMapper, byte[] bytes); static byte[] binaryValue(JsonNode jsonNode); }
JacksonUtil { public static byte[] binaryValue(JsonNode jsonNode) { try { return jsonNode.binaryValue(); } catch (IOException e) { throw new UncheckedIOException(e); } } private  JacksonUtil(); static JsonNode readTree(ObjectMapper objectMapper, byte[] bytes); static byte[] binaryValue(JsonNode jsonNode);  }