fixed merge
This commit is contained in:
parent
06d3fbe5aa
commit
9ec1378b73
|
@ -586,10 +586,14 @@ public class DispatcherTest
|
|||
assertEquals(null, request.getPathInfo());
|
||||
assertEquals(null, request.getPathTranslated());
|
||||
|
||||
UrlEncoded query = new UrlEncoded(request.getQueryString());
|
||||
UrlEncoded query = new UrlEncoded();
|
||||
query.decode(request.getQueryString());
|
||||
assertThat(query.getString("do"), is("end"));
|
||||
|
||||
// Russian for "selected=Temperature"
|
||||
String russian = new UrlEncoded(query.getString("else")).encode();
|
||||
UrlEncoded q2=new UrlEncoded();
|
||||
q2.decode(query.getString("else"));
|
||||
String russian = q2.encode();
|
||||
assertThat(russian, is("%D0%B2%D1%8B%D0%B1%D1%80%D0%B0%D0%BD%D0%BE=%D0%A2%D0%B5%D0%BC%D0%BF%D0%B5%D1%80%D0%B0%D1%82%D1%83%D1%80%D0%B0"));
|
||||
assertThat(query.getString("test"), is("1"));
|
||||
assertThat(query.containsKey("foreign"), is(true));
|
||||
|
|
Loading…
Reference in New Issue