diff --git a/src/test/java/org/cactoos/list/ReverseIterableTest.java b/src/test/java/org/cactoos/list/ReverseIterableTest.java index 91e986a83b..5253d35408 100644 --- a/src/test/java/org/cactoos/list/ReverseIterableTest.java +++ b/src/test/java/org/cactoos/list/ReverseIterableTest.java @@ -23,8 +23,9 @@ */ package org.cactoos.list; +import org.cactoos.TextHasString; +import org.cactoos.text.JoinedText; import org.hamcrest.MatcherAssert; -import org.hamcrest.Matchers; import org.junit.Test; /** @@ -40,7 +41,7 @@ public final class ReverseIterableTest { public void reversesIterable() { MatcherAssert.assertThat( "Can't reverse an iterable", - String.join( + new JoinedText( " ", new ReverseIterable<>( new ArrayAsIterable<>( @@ -48,7 +49,7 @@ public void reversesIterable() { ) ) ), - Matchers.equalTo("dude world hello") + new TextHasString("dude world hello") ); }