Skip to content

Commit

Permalink
yegor256#251: Let's do ReverseIterableTest use JoinedText
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciofx committed Jun 27, 2017
1 parent a21f88e commit c4969c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/java/org/cactoos/list/ReverseIterableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -40,15 +41,15 @@ public final class ReverseIterableTest {
public void reversesIterable() {
MatcherAssert.assertThat(
"Can't reverse an iterable",
String.join(
new JoinedText(
" ",
new ReverseIterable<>(
new ArrayAsIterable<>(
"hello", "world", "dude"
)
)
),
Matchers.equalTo("dude world hello")
new TextHasString("dude world hello")
);
}

Expand Down

0 comments on commit c4969c8

Please sign in to comment.