Skip to content

Commit a5be9c5

Browse files
committed
Changing umlaut to unicode sequence
1 parent 58841f3 commit a5be9c5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

org.springframework.web/src/test/java/org/springframework/web/client/RestTemplateIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void optionsForAllow() throws URISyntaxException {
125125

126126
@Test
127127
public void uri() throws InterruptedException, URISyntaxException {
128-
String result = template.getForObject(URI + "/uri/{query}", String.class, "ZŸrich");
128+
String result = template.getForObject(URI + "/uri/{query}", String.class, "Z\u00fcrich");
129129
assertEquals("Invalid request URI", "/uri/Z%FCrich", result);
130130
}
131131

org.springframework.web/src/test/java/org/springframework/web/util/UriTemplateTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void expandMapUnboundVariables() throws Exception {
8585
@Test
8686
public void expandEncoded() throws Exception {
8787
UriTemplate template = new UriTemplate("http://example.com//hotel list/{hotel}");
88-
URI result = template.expand("ZŸrich");
88+
URI result = template.expand("Z\u00fcrich");
8989
assertEquals("Invalid expanded template", new URI("http://example.com//hotel%20list/Z%FCrich"), result);
9090
}
9191

org.springframework.web/src/test/java/org/springframework/web/util/UriUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void encodeUri() throws UnsupportedEncodingException {
100100
assertEquals("Invalid encoded URI", "http://www.ietf.org/rfc/rfc3986.txt",
101101
UriUtils.encodeUri("http://www.ietf.org/rfc/rfc3986.txt", ENC));
102102
assertEquals("Invalid encoded URI", "http://www.google.com/?q=z%FCrich",
103-
UriUtils.encodeUri("http://www.google.com/?q=zŸrich", ENC));
103+
UriUtils.encodeUri("http://www.google.com/?q=z\u00fcrich", ENC));
104104
assertEquals("Invalid encoded URI",
105105
"http://arjen:[email protected]:80/javase/6/docs/api/java/util/BitSet.html?foo=bar#and(java.util.BitSet)",
106106
UriUtils.encodeUri(

0 commit comments

Comments
 (0)