public void testFromObject_Enum() { JSONArray actual = JSONArray.fromObject(JsonEnum.ARRAY); JSONArray expected = new JSONArray().element("ARRAY"); Assertions.assertEquals(expected, actual); }
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); }