CatalogUriResolver cur = CatalogManager.catalogUriResolver(CatalogFeatures.defaults(), catalogFile);
Source source = cur.resolve("urn:publicid:-:Acme,+Inc.:DTD+Book+Version+1.0", null);
assertNotNull(source, "Source returned is null");
and the catalogFile has:
<uri name="-//Acme, Inc.//DTD Book Version 1.0" uri="book.dtd"/>
Test URL: api/javax_xml/catalog/CatalogUriResolver/index.html#ResolveTests[testMatch1]
Look for 'Uri in publicId namespace is incorrectly unwrapped'
Source source = cur.resolve("urn:publicid:-:Acme,+Inc.:DTD+Book+Version+1.0", null);
assertNotNull(source, "Source returned is null");
and the catalogFile has:
<uri name="-//Acme, Inc.//DTD Book Version 1.0" uri="book.dtd"/>
Test URL: api/javax_xml/catalog/CatalogUriResolver/index.html#ResolveTests[testMatch1]
Look for 'Uri in publicId namespace is incorrectly unwrapped'