update version

This commit is contained in:
Looly
2020-10-23 22:56:38 +08:00
parent 1b90832f91
commit e79369951d
11 changed files with 48 additions and 21 deletions

View File

@@ -25,6 +25,12 @@ import java.util.Map;
*/
public class JSONArrayTest {
@Test(expected = JSONException.class)
public void createJSONArrayTest(){
// 集合类不支持转为JSONObject
new JSONArray(new JSONObject(), JSONConfig.create());
}
@Test
public void addTest() {
// 方法1

View File

@@ -520,4 +520,10 @@ public class JSONObjectTest {
final JSONObject jsonObject = JSONUtil.parseObj(next);
Console.log(jsonObject);
}
@Test(expected = JSONException.class)
public void createJSONObjectTest(){
// 集合类不支持转为JSONObject
new JSONObject(new JSONArray(), JSONConfig.create());
}
}