Пример #1
0
 @Test
 public void putShouldAddNormalProperties() {
   array.put("p", array, "a");
   assertThat(array.has("p", array), is(true));
 }
Пример #2
0
 @Test
 public void deleteShouldRemoveNormalProperties() {
   array.put("p", array, "a");
   array.delete("p");
   assertThat(array.has("p", array), is(false));
 }
Пример #3
0
 @Test
 public void putShouldAddIndexProperties() {
   array.put(0, array, "a");
   assertThat(array.has(0, array), is(true));
 }
Пример #4
0
 @Test
 public void deleteShouldRemoveIndexProperties() {
   array.put(0, array, "a");
   array.delete(0);
   assertThat(array.has(0, array), is(false));
 }