Example #1
0
  @Test
  public void testRemove() throws IOException {
    final IQueue q = client.getQueue(randomString());

    q.offer(1);
    assertTrue(q.remove(1));
    assertFalse(q.remove(2));
  }
Example #2
0
 @Test
 public void testRemoveTop() throws IOException, InterruptedException {
   final IQueue q = client.getQueue(randomString());
   q.offer(1);
   assertEquals(1, q.remove());
 }
Example #3
0
 @Test(expected = NoSuchElementException.class)
 public void testEmptyRemove() throws IOException {
   final IQueue q = client.getQueue(randomString());
   q.remove();
 }