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