Skip to content

Commit

Permalink
Change Can't to Must #1434
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier B. OURA committed Apr 6, 2021
1 parent f3d3400 commit ef0f117
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/java/org/cactoos/io/LoggingOutputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void logWriteZero() throws Exception {
)
).value();
new Assertion<>(
"Can't log zero byte written to memory",
"Must log write zero byte written to memory",
logger.toString(),
new StringContains("Written 0 byte(s) to memory in ")
).affirm();
Expand All @@ -91,7 +91,7 @@ public void logWriteOneByte() throws Exception {
out.write(new BytesOf("a").asBytes());
}
new Assertion<>(
"Can't log one byte written to memory",
"Must log one byte written to memory",
logger.toString(),
new StringContains("Written 1 byte(s) to memory in")
).affirm();
Expand All @@ -110,7 +110,7 @@ public void logWriteText() throws Exception {
out.write(new BytesOf("Hello, товарищ!").asBytes());
}
new Assertion<>(
"Can't log 22 bytes written to memory",
"Must log 22 bytes written to memory",
logger.toString(),
new StringContains("Written 22 byte(s) to memory in")
).affirm();
Expand All @@ -136,7 +136,7 @@ public void logWriteToLargeTextFile() throws Exception {
).value();
}
new Assertion<>(
"Can't log write and close operations to text file",
"Must log write and close operations to text file",
logger.toString(),
new AllOf<>(
new IsNot<String>(
Expand Down Expand Up @@ -170,7 +170,7 @@ public void logAllWriteToLargeTextFile() throws Exception {
).value();
}
new Assertion<>(
"Can't log all write and close operations to text file",
"Must log all write and close operations to text file",
logger.toString(),
new AllOf<>(
new StringContains("Written 16384 byte(s) to text file"),
Expand Down

0 comments on commit ef0f117

Please sign in to comment.