< prev index next >

test/javax/xml/jaxp/functional/catalog/PublicTest.java

Print this page




  75 
  76                 // The catalog file defines two public entries, and both of them
  77                 // match the specified public id. But the first matched URI
  78                 // should be returned.
  79                 { "-//REMOTE//DTD DAVID DOCDAVID XML//EN",
  80                         "http://local/base/dtd/docDavidPub1.dtd" } };
  81     }
  82 
  83     /*
  84      * If no match is found, a CatalogException should be thrown.
  85      */
  86     @Test(expectedExceptions = CatalogException.class)
  87     public void testNoMatch() {
  88         checkNoMatch(createResolver());
  89     }
  90 
  91     private CatalogResolver createResolver() {
  92         return catalogResolver(CATALOG_PUBLIC);
  93     }
  94 }
  95 


  75 
  76                 // The catalog file defines two public entries, and both of them
  77                 // match the specified public id. But the first matched URI
  78                 // should be returned.
  79                 { "-//REMOTE//DTD DAVID DOCDAVID XML//EN",
  80                         "http://local/base/dtd/docDavidPub1.dtd" } };
  81     }
  82 
  83     /*
  84      * If no match is found, a CatalogException should be thrown.
  85      */
  86     @Test(expectedExceptions = CatalogException.class)
  87     public void testNoMatch() {
  88         checkNoMatch(createResolver());
  89     }
  90 
  91     private CatalogResolver createResolver() {
  92         return catalogResolver(CATALOG_PUBLIC);
  93     }
  94 }

< prev index next >