Skip to content

Commit

Permalink
(yegor256#1462) Use TextIs' over TextHasString'
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Oct 30, 2020
1 parent 7da56b0 commit 62669b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/org/cactoos/text/MappedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.junit.jupiter.api.Test;
import org.llorllale.cactoos.matchers.Assertion;
import org.llorllale.cactoos.matchers.TextHasString;
import org.llorllale.cactoos.matchers.TextIs;

/**
* Tests for @{link Mapped}.
Expand All @@ -42,7 +43,7 @@ void mapsWithFormat() {
s -> String.format("<%s>", s),
new TextOf("hi")
),
new TextHasString("<hi>")
new TextIs("<hi>")
).affirm();
}

Expand All @@ -54,7 +55,7 @@ void maps() {
String::toLowerCase,
new TextOf("ABC")
),
new TextHasString("abc")
new TextIs("abc")
).affirm();
}

Expand Down

0 comments on commit 62669b5

Please sign in to comment.