提交 a5be9c5c 编写于 作者: A Arjen Poutsma

Changing umlaut to unicode sequence

上级 58841f3c
......@@ -125,7 +125,7 @@ public class RestTemplateIntegrationTests {
@Test
public void uri() throws InterruptedException, URISyntaxException {
String result = template.getForObject(URI + "/uri/{query}", String.class, "Zrich");
String result = template.getForObject(URI + "/uri/{query}", String.class, "Z\u00fcrich");
assertEquals("Invalid request URI", "/uri/Z%FCrich", result);
}
......
......@@ -85,7 +85,7 @@ public class UriTemplateTests {
@Test
public void expandEncoded() throws Exception {
UriTemplate template = new UriTemplate("http://example.com//hotel list/{hotel}");
URI result = template.expand("Zrich");
URI result = template.expand("Z\u00fcrich");
assertEquals("Invalid expanded template", new URI("http://example.com//hotel%20list/Z%FCrich"), result);
}
......
......@@ -100,7 +100,7 @@ public class UriUtilsTest {
assertEquals("Invalid encoded URI", "http://www.ietf.org/rfc/rfc3986.txt",
UriUtils.encodeUri("http://www.ietf.org/rfc/rfc3986.txt", ENC));
assertEquals("Invalid encoded URI", "http://www.google.com/?q=z%FCrich",
UriUtils.encodeUri("http://www.google.com/?q=zrich", ENC));
UriUtils.encodeUri("http://www.google.com/?q=z\u00fcrich", ENC));
assertEquals("Invalid encoded URI",
"http://arjen:foobar@java.sun.com:80/javase/6/docs/api/java/util/BitSet.html?foo=bar#and(java.util.BitSet)",
UriUtils.encodeUri(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册