SPR-8974 Fix regression in UriUtils.java

This commit is contained in:
Rossen Stoyanchev
2012-01-19 23:47:31 -05:00
parent 9c45acd43a
commit bcd8355e61
3 changed files with 119 additions and 14 deletions

View File

@@ -128,6 +128,9 @@ public class UriUtilsTests {
assertEquals("Invalid encoded URI", "http://example.com/query=foo@bar",
UriUtils.encodeUri("http://example.com/query=foo@bar", ENC));
// SPR-8974
assertEquals("http://example.org?format=json&url=http://another.com?foo=bar",
UriUtils.encodeUri("http://example.org?format=json&url=http://another.com?foo=bar", ENC));
}
@Test