Esempio n. 1
0
  /** Test of resolveNamespaceURI method, of class org.xmlresolver.ResourceResolver. */
  @Ignore
  public void testResolveNamespaceURI() throws Exception {
    ResourceResolver myResolver = new ResourceResolver(new Catalog("documents/catalog.xml"));

    String uri = "http://www.w3.org/2001/XMLSchema";
    String nature = "http://www.isi.edu/in-notes/iana/assignments/media-types/application/xml-dtd";
    String purpose = "http://www.rddl.org/purposes#validation";
    Resource result = myResolver.resolveNamespaceURI(uri, nature, purpose);

    assertNotNull(result);
  }
Esempio n. 2
0
 @Before
 public void setUp() throws Exception {
   catalog = new Catalog("resources/test/catalogs/catalog.xml");
   resolver = new ResourceResolver(catalog);
   entityResolver = new Resolver(resolver);
   resolver.setEntityResolver(entityResolver);
 }
Esempio n. 3
0
  /** Test of resolveURI method, of class org.xmlresolver.ResourceResolver. */
  @Ignore
  public void testResolveEntity() {
    String href = ".bibliography.xml";
    String base = "file:///home/nosuchuser/";

    Resource result = resolver.resolveEntity("bibliography", base + href, null);
    assertNotNull(result);
  }