Skip to content

Commit 255261e

Browse files
author
Alexey Semenyuk
committed
#39 Use cactoos FormattedText instead of static String format
1 parent 34507c9 commit 255261e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/test/java/org/cactoos/http/HtResponseTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.cactoos.text.FormattedText;
2828
import org.cactoos.text.JoinedText;
2929
import org.cactoos.text.TextOf;
30-
import org.cactoos.text.UncheckedText;
3130
import org.hamcrest.MatcherAssert;
3231
import org.hamcrest.Matchers;
3332
import org.junit.Test;
@@ -55,11 +54,9 @@ public void worksFine() throws IOException {
5554
new JoinedText(
5655
"\r\n",
5756
"GET / HTTP/1.1",
58-
new UncheckedText(
59-
new FormattedText(
60-
"Host:%s", home.getHost()
61-
)
62-
).asString()
57+
new FormattedText(
58+
"Host:%s", home.getHost()
59+
).asString()
6360
).asString()
6461
)
6562
).asString(),

0 commit comments

Comments
 (0)