Пример #1
0
 public void testFromObject_Enum() {
   JSONArray actual = JSONArray.fromObject(JsonEnum.ARRAY);
   JSONArray expected = new JSONArray().element("ARRAY");
   Assertions.assertEquals(expected, actual);
 }
Пример #2
0
 public void testConstructor_Object_Array_Enum() {
   JSONArray expected = JSONArray.fromObject("[\"ARRAY\",\"OBJECT\"]");
   JSONArray actual = JSONArray.fromObject(new JsonEnum[] {JsonEnum.ARRAY, JsonEnum.OBJECT});
   Assertions.assertEquals(expected, actual);
 }