Skip to content

Commit

Permalink
#3453 farea up
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 5, 2024
1 parent adcfd23 commit d4cc23e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion eo-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ SOFTWARE.
<dependency>
<groupId>com.yegor256</groupId>
<artifactId>farea</artifactId>
<version>0.3.0</version>
<version>0.4.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
8 changes: 4 additions & 4 deletions eo-runtime/src/test/java/org/eolang/PhiUnphiIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import com.yegor256.WeAreOnline;
import com.yegor256.farea.Farea;
import com.yegor256.farea.RequisiteMatcher;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
Expand Down Expand Up @@ -132,7 +133,7 @@ void runsTestsAfterPhiAndUnphi(final @TempDir Path temp) throws IOException {
.set("printOutputDir", "${project.basedir}/src/test/generated-eo")
.set("printReversed", PhiUnphiIT.TRUE);
f.exec("clean", "compile");
final String phi = f.log();
final String phi = f.log().content();
MatcherAssert.assertThat(
"Converting to phi and back was not successful",
phi,
Expand Down Expand Up @@ -239,7 +240,7 @@ void runsTestsAfterPhiAndUnphi(final @TempDir Path temp) throws IOException {
MatcherAssert.assertThat(
"Some tests weren't passed after converting to phi and back",
f.log(),
Matchers.containsString("BUILD SUCCESS")
RequisiteMatcher.SUCCESS
);
}
);
Expand All @@ -260,8 +261,7 @@ private static void copySources(final Farea farea, final String target) throws I
for (final Path src : sources) {
farea.files()
.file(String.format("%s/%s", target, runtime.relativize(src)))
.write(new UncheckedText(new TextOf(src)).asString())
.show();
.write(new UncheckedText(new TextOf(src)).asString().getBytes());
}
}
}
5 changes: 2 additions & 3 deletions eo-runtime/src/test/java/org/eolang/SnippetIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void runsAllSnippets(final String yml, final @TempDir Path temp) throws IOExcept
.set("mainClass", "org.eolang.Main")
.set("arguments", map.get("args"));
f.exec("clean", "test");
final String log = f.log();
final String log = f.log().content();
Logger.debug(this, log);
MatcherAssert.assertThat(
String.format("'%s' printed something wrong", yml),
Expand Down Expand Up @@ -168,8 +168,7 @@ private static void copySources(final Farea farea, final String target) throws I
for (final Path src : sources) {
farea.files()
.file(String.format("%s/%s", target, runtime.relativize(src)))
.write(new UncheckedText(new TextOf(src)).asString())
.show();
.write(new UncheckedText(new TextOf(src)).asString().getBytes());
}
}
}

0 comments on commit d4cc23e

Please sign in to comment.