File tree Expand file tree Collapse file tree
src/test/java/com/jcabi/xml Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,6 +205,28 @@ void catchesXslErrorMessages() {
205205 );
206206 }
207207
208+ @ Test
209+ void printsSystemIdInErrorMessages () {
210+ MatcherAssert .assertThat (
211+ Assertions .assertThrows (
212+ RuntimeException .class ,
213+ () -> new XSLDocument (
214+ StringUtils .join (
215+ " <xsl:stylesheet" ,
216+ " xmlns:xsl='http://www.w3.org/1999/XSL/Transform'" ,
217+ " version='2.0'><xsl:template match='/'>" ,
218+ "<xsl:value-of select='$xx'/></xsl:template>" ,
219+ " </xsl:stylesheet>"
220+ ),
221+ "some-fake-systemId"
222+ ).transform (new XMLDocument ("<ooo/>" ))
223+ ).getLocalizedMessage (),
224+ Matchers .containsString (
225+ "Failed to create transformer by net.sf.saxon.TransformerFactoryImpl"
226+ )
227+ );
228+ }
229+
208230 @ Test
209231 void catchesSaxonWarnings () {
210232 new XSLDocument (
You can’t perform that action at this time.
0 commit comments