@Test public void testPeak() throws InterruptedException { final IQueue q = client.getQueue(randomString()); q.offer(1); assertEquals(1, q.peek()); assertEquals(1, q.peek()); assertEquals(1, q.size()); }
@Test public void testEmptyPeak() throws InterruptedException { final IQueue q = client.getQueue(randomString()); assertNull(q.peek()); }