@Test(expected = UncheckedIOException.class) public void readFails() throws Exception { when(reader.readValue(emptyNode)).thenThrow(jsonProcessingException); underTest.read(emptyNode); }
@Override public Road read(JsonNode json) { try { return reader.readValue(json); } catch (IOException e) { throw new UncheckedIOException(e); } }
RoadReader implements ModelReader<Road> { @Override public Road read(JsonNode json) { try { return reader.readValue(json); } catch (IOException e) { throw new UncheckedIOException(e); } } }
RoadReader implements ModelReader<Road> { @Override public Road read(JsonNode json) { try { return reader.readValue(json); } catch (IOException e) { throw new UncheckedIOException(e); } } RoadReader(); @VisibleForTesting  RoadReader(ObjectMapper objectMapper); }
RoadReader implements ModelReader<Road> { @Override public Road read(JsonNode json) { try { return reader.readValue(json); } catch (IOException e) { throw new UncheckedIOException(e); } } RoadReader(); @VisibleForTesting  RoadReader(ObjectMapper objectMapper); @Override Road read(JsonNode json); }
RoadReader implements ModelReader<Road> { @Override public Road read(JsonNode json) { try { return reader.readValue(json); } catch (IOException e) { throw new UncheckedIOException(e); } } RoadReader(); @VisibleForTesting  RoadReader(ObjectMapper objectMapper); @Override Road read(JsonNode json);  }