mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
change name
This commit is contained in:
@@ -13,21 +13,21 @@ public class JSONStrFormaterTest {
|
||||
@Test
|
||||
public void formatTest() {
|
||||
String json = "{'age':23,'aihao':['pashan','movies'],'name':{'firstName':'zhang','lastName':'san','aihao':['pashan','movies','name':{'firstName':'zhang','lastName':'san','aihao':['pashan','movies']}]}}";
|
||||
String result = JSONStrFormater.format(json);
|
||||
String result = JSONStrFormatter.format(json);
|
||||
Assert.assertNotNull(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void formatTest2() {
|
||||
String json = "{\"abc\":{\"def\":\"\\\"[ghi]\"}}";
|
||||
String result = JSONStrFormater.format(json);
|
||||
String result = JSONStrFormatter.format(json);
|
||||
Assert.assertNotNull(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void formatTest3() {
|
||||
String json = "{\"id\":13,\"title\":\"《标题》\",\"subtitle\":\"副标题z'c'z'xv'c'xv\",\"user_id\":6,\"type\":0}";
|
||||
String result = JSONStrFormater.format(json);
|
||||
String result = JSONStrFormatter.format(json);
|
||||
Assert.assertNotNull(result);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user