@Test void checkThrowsExcpetionOnNullTermNamespace() throws ODataJPAModelException { final String uri = MEASURES_V1_URL; final IntermediateReferenceAccess ref = cut.addReference(uri, "annotations/Org.OData.Measures.V1.xml"); assertThrows(ODataJPAModelException.class, () -> ref.addIncludeAnnotation(null)); }
@Override public IntermediateReferenceAccess addReference(final String uri) throws ODataJPAModelException { try { final URI sourceURI = new URI(uri); final CsdlDocument vocabulary = new CsdlDocumentReader().readFromURI(sourceURI); return createReference(sourceURI, "", vocabulary); } catch (final URISyntaxException e) { throw new ODataJPAModelException(e); } catch (final IOException e) { throw new ODataJPAModelException(ANNOTATION_PARSE_ERROR, e, uri, e.getMessage()); } }
IntermediateReferences implements IntermediateReferenceList { @Override public IntermediateReferenceAccess addReference(final String uri) throws ODataJPAModelException { try { final URI sourceURI = new URI(uri); final CsdlDocument vocabulary = new CsdlDocumentReader().readFromURI(sourceURI); return createReference(sourceURI, "", vocabulary); } catch (final URISyntaxException e) { throw new ODataJPAModelException(e); } catch (final IOException e) { throw new ODataJPAModelException(ANNOTATION_PARSE_ERROR, e, uri, e.getMessage()); } } }
IntermediateReferences implements IntermediateReferenceList { @Override public IntermediateReferenceAccess addReference(final String uri) throws ODataJPAModelException { try { final URI sourceURI = new URI(uri); final CsdlDocument vocabulary = new CsdlDocumentReader().readFromURI(sourceURI); return createReference(sourceURI, "", vocabulary); } catch (final URISyntaxException e) { throw new ODataJPAModelException(e); } catch (final IOException e) { throw new ODataJPAModelException(ANNOTATION_PARSE_ERROR, e, uri, e.getMessage()); } }  }
IntermediateReferences implements IntermediateReferenceList { @Override public IntermediateReferenceAccess addReference(final String uri) throws ODataJPAModelException { try { final URI sourceURI = new URI(uri); final CsdlDocument vocabulary = new CsdlDocumentReader().readFromURI(sourceURI); return createReference(sourceURI, "", vocabulary); } catch (final URISyntaxException e) { throw new ODataJPAModelException(e); } catch (final IOException e) { throw new ODataJPAModelException(ANNOTATION_PARSE_ERROR, e, uri, e.getMessage()); } }  @Override IntermediateReferenceAccess addReference(final String uri); @Override IntermediateReferenceAccess addReference(@Nonnull final String uri, @Nonnull final String path,
      @Nonnull final Charset charset); @Override IntermediateReferenceAccess addReference(@Nonnull final String uri, @Nonnull final String path); CsdlTerm getTerm(final FullQualifiedName termName); List<CsdlSchema> getSchemas(); }
IntermediateReferences implements IntermediateReferenceList { @Override public IntermediateReferenceAccess addReference(final String uri) throws ODataJPAModelException { try { final URI sourceURI = new URI(uri); final CsdlDocument vocabulary = new CsdlDocumentReader().readFromURI(sourceURI); return createReference(sourceURI, "", vocabulary); } catch (final URISyntaxException e) { throw new ODataJPAModelException(e); } catch (final IOException e) { throw new ODataJPAModelException(ANNOTATION_PARSE_ERROR, e, uri, e.getMessage()); } }  @Override IntermediateReferenceAccess addReference(final String uri); @Override IntermediateReferenceAccess addReference(@Nonnull final String uri, @Nonnull final String path,
      @Nonnull final Charset charset); @Override IntermediateReferenceAccess addReference(@Nonnull final String uri, @Nonnull final String path); CsdlTerm getTerm(final FullQualifiedName termName); List<CsdlSchema> getSchemas();  }