예제 #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);
 }