mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
537dfc80b7
commit
fe6ae2c996
@ -0,0 +1,19 @@
|
||||
package cn.hutool.core.net;
|
||||
|
||||
import cn.hutool.core.net.url.UrlQuery;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
public class UrlQueryTest {
|
||||
|
||||
@Test
|
||||
public void parseTest(){
|
||||
String queryStr = "a=1&b=111==";
|
||||
UrlQuery q = new UrlQuery();
|
||||
UrlQuery parse = q.parse(queryStr, Charset.defaultCharset());
|
||||
Assert.assertEquals("111==", parse.get("b"));
|
||||
Assert.assertEquals("a=1&b=111==", parse.toString());
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user