File tree Expand file tree Collapse file tree 3 files changed +8
-18
lines changed
src/test/java/org/cactoos/http Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change 27
27
import org .cactoos .text .FormattedText ;
28
28
import org .cactoos .text .JoinedText ;
29
29
import org .cactoos .text .TextOf ;
30
- import org .cactoos .text .UncheckedText ;
31
30
import org .hamcrest .MatcherAssert ;
32
31
import org .hamcrest .Matchers ;
33
32
import org .junit .Test ;
41
40
* @version $Id$
42
41
* @since 0.1
43
42
* @checkstyle JavadocMethodCheck (500 lines)
44
- * @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
45
43
*/
46
44
public final class HtAutoRedirectTest {
47
45
@@ -56,10 +54,8 @@ public void redirectsRequestAutomatically() throws Exception {
56
54
new JoinedText (
57
55
"\r \n " ,
58
56
"HTTP/1.1 301" ,
59
- new UncheckedText (
60
- new FormattedText (
61
- "Location: %s" , home
62
- )
57
+ new FormattedText (
58
+ "Location: %s" , home
63
59
).asString ()
64
60
)
65
61
)
Original file line number Diff line number Diff line change 32
32
import org .cactoos .text .FormattedText ;
33
33
import org .cactoos .text .JoinedText ;
34
34
import org .cactoos .text .TextOf ;
35
- import org .cactoos .text .UncheckedText ;
36
35
import org .hamcrest .MatcherAssert ;
37
36
import org .hamcrest .Matchers ;
38
37
import org .junit .Test ;
@@ -134,11 +133,9 @@ public InputStream stream() throws IOException {
134
133
new JoinedText (
135
134
delimiter ,
136
135
"GET / HTTP/1.1" ,
137
- new UncheckedText (
138
- new FormattedText (
139
- "Host: %s" ,
140
- this .host
141
- )
136
+ new FormattedText (
137
+ "Host: %s" ,
138
+ this .host
142
139
).asString (),
143
140
"Connection: close" ,
144
141
delimiter
Original file line number Diff line number Diff line change 32
32
import org .cactoos .text .FormattedText ;
33
33
import org .cactoos .text .JoinedText ;
34
34
import org .cactoos .text .TextOf ;
35
- import org .cactoos .text .UncheckedText ;
36
35
import org .hamcrest .MatcherAssert ;
37
36
import org .hamcrest .Matchers ;
38
37
import org .junit .Test ;
@@ -80,11 +79,9 @@ public void worksWithProvidedHostNameAndPort() throws IOException {
80
79
new JoinedText (
81
80
"\r \n " ,
82
81
"GET / HTTP/1.1" ,
83
- new UncheckedText (
84
- new FormattedText (
85
- "Host:%s" ,
86
- home .getHost ()
87
- )
82
+ new FormattedText (
83
+ "Host:%s" ,
84
+ home .getHost ()
88
85
).asString ()
89
86
).asString ()
90
87
)
You can’t perform that action at this time.
0 commit comments