< prev index next >

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

Print this page




  53      */
  54     @Test
  55     public void testMatch() {
  56         checkPubIdResolution(createResolver(),
  57                 "-//REMOTE//DTD ALICE DOCALICE XML//EN",
  58                 "http://local/base/dtd/docAlicePub.dtd");
  59     }
  60 
  61     /*
  62      * If no match is found, a CatalogException should be thrown.
  63      */
  64     @Test(expectedExceptions = CatalogException.class)
  65     public void testNoMatched() {
  66         checkNoMatch(createResolver());
  67     }
  68 
  69     private CatalogResolver createResolver() {
  70         return catalogResolver("publicFamily.xml");
  71     }
  72 }
  73 


  53      */
  54     @Test
  55     public void testMatch() {
  56         checkPubIdResolution(createResolver(),
  57                 "-//REMOTE//DTD ALICE DOCALICE XML//EN",
  58                 "http://local/base/dtd/docAlicePub.dtd");
  59     }
  60 
  61     /*
  62      * If no match is found, a CatalogException should be thrown.
  63      */
  64     @Test(expectedExceptions = CatalogException.class)
  65     public void testNoMatched() {
  66         checkNoMatch(createResolver());
  67     }
  68 
  69     private CatalogResolver createResolver() {
  70         return catalogResolver("publicFamily.xml");
  71     }
  72 }

< prev index next >