This commit is contained in:
Looly
2020-11-27 17:01:35 +08:00
parent 2954fe0520
commit a09861b033
3 changed files with 8 additions and 1 deletions

View File

@@ -535,4 +535,10 @@ public class JSONObjectTest {
final String s = JSONUtil.toJsonStr(map);
Console.log(s);
}
@Test
public void accumulateTest(){
final JSONObject accumulate = JSONUtil.createObj().accumulate("key1", "value1");
Assert.assertEquals("{\"key1\":[\"value1\"]}", accumulate.toString());
}
}