diff --git a/src/test/java/org/cactoos/io/TempFileTest.java b/src/test/java/org/cactoos/io/TempFileTest.java index 815e4d67d6..a00c96dd01 100644 --- a/src/test/java/org/cactoos/io/TempFileTest.java +++ b/src/test/java/org/cactoos/io/TempFileTest.java @@ -32,6 +32,7 @@ import org.hamcrest.core.IsEqual; import org.junit.Test; import org.llorllale.cactoos.matchers.Assertion; +import org.llorllale.cactoos.matchers.EndsWith; import org.llorllale.cactoos.matchers.MatcherOf; import org.llorllale.cactoos.matchers.StartsWith; @@ -40,6 +41,7 @@ * * @since 1.0 * @checkstyle JavadocMethodCheck (500 lines) + * @checkstyle ClassDataAbstractionCouplingCheck (500 lines) */ public final class TempFileTest { @@ -112,8 +114,8 @@ public void createFileWithSuffix() throws Exception { new Assertion<>( "File must be created with the given suffix", new TextOf(file.value().getFileName().toString()), - new StartsWith(suffix) - ); + new EndsWith(suffix) + ).affirm(); } } } diff --git a/src/test/java/org/cactoos/io/UncheckedBytesTest.java b/src/test/java/org/cactoos/io/UncheckedBytesTest.java index f61e7da159..3321b9cc88 100644 --- a/src/test/java/org/cactoos/io/UncheckedBytesTest.java +++ b/src/test/java/org/cactoos/io/UncheckedBytesTest.java @@ -58,6 +58,6 @@ public void worksNormallyWhenNoExceptionIsThrown() throws Exception { Matchers.equalTo( new BytesOf(source).asBytes() ) - ); + ).affirm(); } }