* @throws MalformedURLException - in error case
* @throws URISyntaxException - if the url can't be resolved
*/
public void testResolver() throws IOException, MalformedURLException, URISyntaxException{
if (true) return;
final Resolver toTest=new Resolver();
//If the source document contains "oasis-xml-catalog" processing instructions,
// should they be used?
System.setProperty("xml.catalog.allowPI", "true");
//Which identifier is preferred, "public" or "system"?
System.setProperty("xml.catalog.prefer", "system");
//If non-zero, the Catalog classes will print informative and debugging messages.
//The higher the number, the more messages.
System.setProperty("xml.catalog.verbosity", "0");
toTest.setCatalogManager(CatalogManager.getStaticManager());
toTest.setupReaders();
ClassLoader loader = Thread.currentThread().getContextClassLoader();
URL url = loader.getResource("jax-ws-catalog.xml");
toTest.parseCatalog(url);
final String systemID="http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_1.dtd";
final String publicID="-//JBoss//DTD JBOSS XMBEAN 1.1//EN";
String resolved = toTest.resolveSystem(systemID);
this.testIfExists(resolved);
System.out.println("Resolved: "+resolved);
resolved = toTest.resolvePublic(publicID, systemID);
System.out.println("Resolved: "+resolved);
this.testIfExists(resolved);
}