Skip to content

Commit

Permalink
Change Can't to Must in LoggingInputTest #1434
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier B. OURA committed Apr 7, 2021
1 parent ef0f117 commit 9f33693
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/test/java/org/cactoos/io/LoggingInputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void logReadFromDeadInput() throws Exception {
)
).value();
new Assertion<>(
"Can't log zero byte read from dead input",
"Must log zero byte read from dead input",
new TextOf(logger.toString()),
new HasString("Read 0 byte(s) from dead input in")
).affirm();
Expand All @@ -78,7 +78,7 @@ void logReadFromOneByte() throws Exception {
)
).value();
new Assertion<>(
"Can't log one byte read from memory",
"Must log one byte read from memory",
new TextOf(logger.toString()),
new HasString("Read 1 byte(s) from memory in")
).affirm();
Expand All @@ -95,7 +95,7 @@ void logReadFromText() throws Exception {
)
).value();
new Assertion<>(
"Can't log 22 bytes read from memory",
"Must log 22 bytes read from memory",
new TextOf(logger.toString()),
new HasString("Read 22 byte(s) from memory in")
).affirm();
Expand All @@ -113,7 +113,7 @@ void logReadFromLargeTextFile() throws Exception {
)
).value();
new Assertion<>(
"Can't log 74536 bytes read from text file",
"Must log 74536 bytes read from text file",
new TextOf(logger.toString()),
new AllOf<>(
new IsNot<Text>(
Expand All @@ -137,7 +137,7 @@ void logAllFromLargeTextFile() throws Exception {
)
).value();
new Assertion<>(
"Can't log all read and close operations from text file",
"Must log all read and close operations from text file",
new TextOf(logger.toString()),
new AllOf<>(
new HasString("Read 16384 byte(s) from text file"),
Expand All @@ -160,7 +160,7 @@ void logSkipFromLargeTextFile() throws Exception {
// @checkstyle MagicNumber (1 line)
).stream().skip(100);
new Assertion<>(
"Can't log skip from text file",
"Must log skip from text file",
new TextOf(logger.toString()),
new HasString("Skipped 100 byte(s) from text file.")
).affirm();
Expand All @@ -175,7 +175,7 @@ void logAvailableFromLargeTextFile() throws Exception {
logger
).stream().available();
new Assertion<>(
"Can't log avaliable byte(s) from text file",
"Must log avaliable byte(s) from text file",
new TextOf(logger.toString()),
new HasString(
"There is(are) 74536 byte(s) available from text file"
Expand All @@ -196,7 +196,7 @@ void logResetFromLargeTextFile() throws Exception {
input.mark(150);
input.reset();
new Assertion<>(
"Can't log mark and reset from text file",
"Must log mark and reset from text file",
new TextOf(logger.toString()),
new AllOf<>(
new HasString("Marked position 150 from text file"),
Expand All @@ -214,7 +214,7 @@ void logMarkSupportedFromLargeTextFile() throws Exception {
logger
).stream().markSupported();
new Assertion<>(
"Can't log mark and reset are not supported from text file",
"Must log mark and reset are not supported from text file",
new TextOf(logger.toString()),
new HasString(
"Mark and reset are supported from text file"
Expand Down

2 comments on commit 9f33693

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 9f33693 Apr 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1223-fd48e847 disappeared from pom.xml, that's why I closed #1434. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 9f33693 Apr 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1434-fd48e847 discovered in pom.xml and submitted as #1583. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.