Skip to content

Commit 36199ef

Browse files
committed
Restore UriComponentBuilderTests.testFromHttpUrlBuildEncoded()
See spring-projects/spring-framework#19394
1 parent 6cce7b6 commit 36199ef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/learningtest/org/springframework/web/UriComponentBuilderTests.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import org.springframework.web.util.UriComponentsBuilder;
66

7-
import org.junit.Ignore;
87
import org.junit.Test;
98

109
/**
@@ -14,16 +13,15 @@
1413
*/
1514
public class UriComponentBuilderTests {
1615

17-
// FIXME: See https://github.com/spring-projects/spring-framework/issues/19394
18-
@Ignore
1916
@Test
2017
public void testFromHttpUrlBuildEncoded() {
2118
// Works with '%20' for a space
2219
String httpUrl = "http://localhost:8080/test/print?value=%EA%B0%80%20%EB%82%98";
2320
URI uri = UriComponentsBuilder.fromHttpUrl(httpUrl).build(true).toUri();
2421
System.out.println(uri);
2522

26-
// but doesn't work with '+' for a space.
23+
// Works with '+' for a space.
24+
// See https://github.com/spring-projects/spring-framework/issues/19394
2725
httpUrl = "http://localhost:8080/test/print?value=%EA%B0%80+%EB%82%98";
2826
uri = UriComponentsBuilder.fromHttpUrl(httpUrl).build(true).toUri();
2927
System.out.println(uri);

0 commit comments

Comments
 (0)