diff --git a/eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java b/eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java index d1aaa1a558..daf6dab59c 100644 --- a/eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java +++ b/eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java @@ -46,6 +46,7 @@ import org.eolang.jucs.ClasspathSource; import org.eolang.maven.util.HmBase; import org.eolang.parser.EoSyntax; +import org.eolang.parser.StrictXmir; import org.eolang.xax.XtSticky; import org.eolang.xax.XtYaml; import org.eolang.xax.Xtory; @@ -203,12 +204,14 @@ void checksUnphiPacks(final String pack, @Mktmp final Path temp) throws Exceptio new HmBase(temp).save(phi, Paths.get("target/phi/main.phi")); final List failures = new ListOf<>(); new FakeMaven(temp).execute(UnphiMojo.class); - final XML doc = new XMLDocument( - new TextOf( - temp.resolve( - Paths.get(String.format("target/%s/main.xmir", ParseMojo.DIR)) - ) - ).asString() + final XML doc = new StrictXmir( + new XMLDocument( + new TextOf( + temp.resolve( + Paths.get(String.format("target/%s/main.xmir", ParseMojo.DIR)) + ) + ).asString() + ) ); Logger.debug(this, "Parsed phi:\n%s", doc); for (final String xpath : (Iterable) xtory.map().get("asserts")) { @@ -239,7 +242,6 @@ void convertsToXmirAndBack(final String pack, @Mktmp final Path temp) throws Exc final long saved = temp.resolve(path).toFile().lastModified(); final FakeMaven maven = new FakeMaven(temp).execute(UnphiMojo.class); final Path xmir = temp.resolve(String.format("target/%s/main.xmir", ParseMojo.DIR)); - Logger.debug(this, "Unphied XMIR: %s", new TextOf(xmir).asString()); maven.foreignTojos().add("name").withXmir(xmir); final Path result = maven .execute(OptimizeMojo.class)