This commit is contained in:
Looly
2022-03-29 23:57:03 +08:00
parent 64fdf75fc6
commit 0d9185a98d
3 changed files with 15 additions and 2 deletions

View File

@@ -8,7 +8,10 @@ public class RFC3986Test {
@Test
public void encodeQueryTest(){
final String encode = RFC3986.QUERY_PARAM_VALUE.encode("a=b", CharsetUtil.CHARSET_UTF_8);
String encode = RFC3986.QUERY_PARAM_VALUE.encode("a=b", CharsetUtil.CHARSET_UTF_8);
Assert.assertEquals("a=b", encode);
encode = RFC3986.QUERY_PARAM_VALUE.encode("a+1=b", CharsetUtil.CHARSET_UTF_8);
Assert.assertEquals("a+1=b", encode);
}
}