From 9f33693c15e48e10e7e5a62bbb32c66f26200c62 Mon Sep 17 00:00:00 2001 From: "Olivier B. OURA" Date: Wed, 7 Apr 2021 02:55:20 +0000 Subject: [PATCH] Change Can't to Must in LoggingInputTest #1434 --- .../java/org/cactoos/io/LoggingInputTest.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/test/java/org/cactoos/io/LoggingInputTest.java b/src/test/java/org/cactoos/io/LoggingInputTest.java index 7b84182e7..c42c75b31 100644 --- a/src/test/java/org/cactoos/io/LoggingInputTest.java +++ b/src/test/java/org/cactoos/io/LoggingInputTest.java @@ -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(); @@ -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(); @@ -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(); @@ -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( @@ -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"), @@ -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(); @@ -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" @@ -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"), @@ -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"