Ejemplo n.º 1
0
  @Test
  public void testRemove() throws InterruptedException, JSONException {
    loadBulkData();
    store.remove(1);

    List<Data> allData = new ArrayList<Data>(store.readAll());
    Collections.sort(allData);
    Assert.assertEquals(5, allData.size());
    Assert.assertEquals(2l, (long) allData.get(0).getId());
    Assert.assertEquals("name2", allData.get(4).getName());
  }