Example #1
0
 @Test
 public void testElement() throws InterruptedException {
   final IQueue q = client.getQueue(randomString());
   q.offer(1);
   assertEquals(1, q.element());
 }
Example #2
0
 @Test(expected = NoSuchElementException.class)
 public void testEmptyElement() throws InterruptedException {
   final IQueue q = client.getQueue(randomString());
   q.element();
 }