78
79 // The catalog file defines two rewriteSystem 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/ella/rs/docElla.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("rewriteSystem.xml");
96 }
97 }
98
|
78
79 // The catalog file defines two rewriteSystem 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/ella/rs/docElla.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("rewriteSystem.xml");
96 }
97 }
|