Exemplo n.º 1
0
  @Test
  public void testRemoveList() throws IOException {
    final int maxItems = 131;
    final IQueue q = client.getQueue(randomString());

    List removeList = new LinkedList();
    for (int i = 0; i < maxItems; i++) {
      q.add(i);
      removeList.add(i);
    }

    assertTrue(q.removeAll(removeList));
    assertEquals(0, q.size());
  }