예제 #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);
  }
예제 #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);
 }
예제 #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);
  }