@Test public void testReadFromURIThrowsNullPointerOnNull() throws ODataJPAModelException, IOException { assertThrows(NullPointerException.class, () -> cut.readFromURI(null)); }
public CsdlDocument readFromURI(@Nonnull final URI uri) throws IOException { return xmlMapper.readValue(Objects.requireNonNull(uri).toURL(), CsdlDocument.class); }
CsdlDocumentReader { public CsdlDocument readFromURI(@Nonnull final URI uri) throws IOException { return xmlMapper.readValue(Objects.requireNonNull(uri).toURL(), CsdlDocument.class); } }
CsdlDocumentReader { public CsdlDocument readFromURI(@Nonnull final URI uri) throws IOException { return xmlMapper.readValue(Objects.requireNonNull(uri).toURL(), CsdlDocument.class); } CsdlDocumentReader(); }
CsdlDocumentReader { public CsdlDocument readFromURI(@Nonnull final URI uri) throws IOException { return xmlMapper.readValue(Objects.requireNonNull(uri).toURL(), CsdlDocument.class); } CsdlDocumentReader(); CsdlDocument readFromResource(@Nonnull final String path, @Nonnull final Charset charset); CsdlDocument readFromURI(@Nonnull final URI uri); }
CsdlDocumentReader { public CsdlDocument readFromURI(@Nonnull final URI uri) throws IOException { return xmlMapper.readValue(Objects.requireNonNull(uri).toURL(), CsdlDocument.class); } CsdlDocumentReader(); CsdlDocument readFromResource(@Nonnull final String path, @Nonnull final Charset charset); CsdlDocument readFromURI(@Nonnull final URI uri);  }