コード例 #1
0
 @Test
 public void shouldDecodeArrayOfStrings() throws JSONException {
   Child child = new Child("{ 'test1' : ['value1', 'value2', 'value3' ]}");
   assertThat(
       child.getJSONArray("test1").toString(),
       is(new JSONArray(Arrays.asList("value1", "value2", "value3")).toString()));
 }