From fa589e608db193cf0b962fdb40f68f546a58ef89 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Thu, 12 Dec 2024 20:29:26 +0300 Subject: [PATCH] #3636: explained --- eo-parser/src/main/java/org/eolang/parser/StrictXmir.java | 5 ++++- .../src/test/java/org/eolang/parser/StrictXmirTest.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/eo-parser/src/main/java/org/eolang/parser/StrictXmir.java b/eo-parser/src/main/java/org/eolang/parser/StrictXmir.java index de184ea936..0e35a043b1 100644 --- a/eo-parser/src/main/java/org/eolang/parser/StrictXmir.java +++ b/eo-parser/src/main/java/org/eolang/parser/StrictXmir.java @@ -50,7 +50,10 @@ * *

This class is supposed to be used ONLY for testing, because * it modifies the XML encapsulated: it replaces the location of - * XSD schema with a file, thus making testing much faster.

+ * XSD schema with a file, thus making testing much faster. However, + * the original location of the XSD schema will be lost/removed + * from the XML. Thus, you better save the XML to disc and only + * then encapsulate it into this decorator.

* * @since 0.49.0 */ diff --git a/eo-parser/src/test/java/org/eolang/parser/StrictXmirTest.java b/eo-parser/src/test/java/org/eolang/parser/StrictXmirTest.java index b3a61d1dc2..46853e414d 100644 --- a/eo-parser/src/test/java/org/eolang/parser/StrictXmirTest.java +++ b/eo-parser/src/test/java/org/eolang/parser/StrictXmirTest.java @@ -83,7 +83,7 @@ void validatesXmirWithBrokenUri(@Mktmp final Path tmp) { new XMLDocument( new Xembler( new Directives() - .append(new DrProgram("foo")) + .append(new DrProgram("foobar")) .xpath("/program") .attr( "noNamespaceSchemaLocation xsi http://www.w3.org/2001/XMLSchema-instance",