From c4969c8eac2039d189fb0ab1ca83d24456b3998d Mon Sep 17 00:00:00 2001 From: Fabricio Cabral Date: Tue, 27 Jun 2017 17:26:34 -0300 Subject: [PATCH] #251: Let's do ReverseIterableTest use JoinedText --- src/test/java/org/cactoos/list/ReverseIterableTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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") ); }