Skip to content

Commit

Permalink
#2978 add assertion messages
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed May 7, 2024
1 parent 3cfb4c1 commit 5b1f54a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eo-runtime/src/test/java/org/eolang/DataizedTest.java
Expand Up @@ -54,7 +54,7 @@ void logsCorrectly() {
log.setLevel(before);
log.removeHandler(hnd);
MatcherAssert.assertThat(
AtCompositeTest.TO_ADD_MESSAGE,
"Expected correct logs for object dataization",
logs.get(0).getMessage(),
Matchers.allOf(
Matchers.containsString("int谓"),
Expand All @@ -76,14 +76,14 @@ void logsWhenException() {
i -> Assertions.assertThrows(
ExFailure.class,
() -> new Dataized(wrong).take(),
AtCompositeTest.TO_ADD_MESSAGE
"Expected failure with ExFailure exception on incorrect object dataization"
)
);
new Dataized(new Data.ToPhi(1L), log).take();
log.setLevel(before);
log.removeHandler(hnd);
MatcherAssert.assertThat(
AtCompositeTest.TO_ADD_MESSAGE,
"Expected correct logs for object dataization",
logs.get(0).getMessage(),
Matchers.allOf(
Matchers.containsString("int谓"),
Expand Down

0 comments on commit 5b1f54a

Please sign in to comment.