mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user