From 62669b5b451397399b2e3de7e4124c6e1a41ab1d Mon Sep 17 00:00:00 2001 From: andreoss Date: Fri, 30 Oct 2020 23:27:02 +0300 Subject: [PATCH] (#1462) Use `TextIs' over `TextHasString' --- src/test/java/org/cactoos/text/MappedTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/cactoos/text/MappedTest.java b/src/test/java/org/cactoos/text/MappedTest.java index 054c2efc3a..4320fd8eb8 100644 --- a/src/test/java/org/cactoos/text/MappedTest.java +++ b/src/test/java/org/cactoos/text/MappedTest.java @@ -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}. @@ -42,7 +43,7 @@ void mapsWithFormat() { s -> String.format("<%s>", s), new TextOf("hi") ), - new TextHasString("") + new TextIs("") ).affirm(); } @@ -54,7 +55,7 @@ void maps() { String::toLowerCase, new TextOf("ABC") ), - new TextHasString("abc") + new TextIs("abc") ).affirm(); }