}
@Test
@Ignore
public void testBerkleyQueue() {
BerkleyQueue queue = new BerkleyQueue("stats");
try {
queue.setQueueCapacity(500);
for (int i = 0; i < 1000; i++) {
queue.add(new TestTask("tratatatat"));
}
for (int i = 0; i < 1000; i++) {
Object obj = queue.poll();
assertNotNull(obj);
}
assertNull(queue.poll());
} finally {
queue.dispose();
}
}