< prev index next >

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

Print this page




  78 
  79                 // The catalog file defines two systemIdSuffix entries, and both
  80                 // of them match the specified system id. But the longest match
  81                 // should be used.
  82                 { "http://remote/dtd/ella/docElla.dtd",
  83                         "http://local/base/dtd/docEllaSS.dtd" } };
  84     }
  85 
  86     /*
  87      * If no match is found, a CatalogException should be thrown.
  88      */
  89     @Test(expectedExceptions = CatalogException.class)
  90     public void testNoMatch() {
  91         checkNoMatch(createResolver());
  92     }
  93 
  94     private CatalogResolver createResolver() {
  95         return catalogResolver("systemSuffix.xml");
  96     }
  97 }
  98 


  78 
  79                 // The catalog file defines two systemIdSuffix entries, and both
  80                 // of them match the specified system id. But the longest match
  81                 // should be used.
  82                 { "http://remote/dtd/ella/docElla.dtd",
  83                         "http://local/base/dtd/docEllaSS.dtd" } };
  84     }
  85 
  86     /*
  87      * If no match is found, a CatalogException should be thrown.
  88      */
  89     @Test(expectedExceptions = CatalogException.class)
  90     public void testNoMatch() {
  91         checkNoMatch(createResolver());
  92     }
  93 
  94     private CatalogResolver createResolver() {
  95         return catalogResolver("systemSuffix.xml");
  96     }
  97 }

< prev index next >