From 3ab952eeb2e7151d0ba4e435c4c12cf7c7eed8bb Mon Sep 17 00:00:00 2001 From: marceloamadeu Date: Wed, 8 Apr 2020 01:27:14 -0300 Subject: [PATCH] Corrections --- src/test/java/org/cactoos/io/TempFileTest.java | 6 ++++-- src/test/java/org/cactoos/io/UncheckedBytesTest.java | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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(); } }