@Test public void testReadDocumentContainsReferences() throws IOException, ODataJPAModelException { final CsdlDocument act = cut.readFromResource(CORE_ANNOTATIONS, charset); assertNotNull(act.getReference()); assertEquals(1, act.getReference().size()); final EdmxReference ref = act.getReference().get(0); assertNotNull(ref.getIncludes()); assertEquals(1, ref.getIncludes().size()); final EdmxReferenceInclude include = ref.getIncludes().get(0); assertEquals("Validation", include.getAlias()); assertEquals("Org.OData.Validation.V1", include.getNamespace()); }
public CsdlDocument readFromResource(@Nonnull final String path, @Nonnull final Charset charset) throws IOException, ODataJPAModelException { if (Objects.requireNonNull(path).isEmpty()) return null; return xmlMapper.readValue(loadXML(path, Objects.requireNonNull(charset)), CsdlDocument.class); }
CsdlDocumentReader { public CsdlDocument readFromResource(@Nonnull final String path, @Nonnull final Charset charset) throws IOException, ODataJPAModelException { if (Objects.requireNonNull(path).isEmpty()) return null; return xmlMapper.readValue(loadXML(path, Objects.requireNonNull(charset)), CsdlDocument.class); } }
CsdlDocumentReader { public CsdlDocument readFromResource(@Nonnull final String path, @Nonnull final Charset charset) throws IOException, ODataJPAModelException { if (Objects.requireNonNull(path).isEmpty()) return null; return xmlMapper.readValue(loadXML(path, Objects.requireNonNull(charset)), CsdlDocument.class); } CsdlDocumentReader(); }
CsdlDocumentReader { public CsdlDocument readFromResource(@Nonnull final String path, @Nonnull final Charset charset) throws IOException, ODataJPAModelException { if (Objects.requireNonNull(path).isEmpty()) return null; return xmlMapper.readValue(loadXML(path, Objects.requireNonNull(charset)), CsdlDocument.class); } CsdlDocumentReader(); CsdlDocument readFromResource(@Nonnull final String path, @Nonnull final Charset charset); CsdlDocument readFromURI(@Nonnull final URI uri); }
CsdlDocumentReader { public CsdlDocument readFromResource(@Nonnull final String path, @Nonnull final Charset charset) throws IOException, ODataJPAModelException { if (Objects.requireNonNull(path).isEmpty()) return null; return xmlMapper.readValue(loadXML(path, Objects.requireNonNull(charset)), CsdlDocument.class); } CsdlDocumentReader(); CsdlDocument readFromResource(@Nonnull final String path, @Nonnull final Charset charset); CsdlDocument readFromURI(@Nonnull final URI uri);  }