@Test public void testClose() { BlockingQueue blockingQueue = new BlockingQueue(); blockingQueue.close(); assertFalse(blockingQueue.ready(), "blockingQueue.ready()"); }
public synchronized void close() { closed = true; notifyAll(); }
BlockingQueue { public synchronized void close() { closed = true; notifyAll(); } }
BlockingQueue { public synchronized void close() { closed = true; notifyAll(); }  }
BlockingQueue { public synchronized void close() { closed = true; notifyAll(); }  synchronized void enqueue(Object o); synchronized void requeue(Object o); synchronized Object dequeue(); synchronized Object dequeue(long timeout); synchronized void close(); synchronized int consumerCount(); synchronized int consumerDeficit(); synchronized boolean ready(); synchronized int pending(); LinkedList getQueue(); void setQueue(LinkedList queue); }
BlockingQueue { public synchronized void close() { closed = true; notifyAll(); }  synchronized void enqueue(Object o); synchronized void requeue(Object o); synchronized Object dequeue(); synchronized Object dequeue(long timeout); synchronized void close(); synchronized int consumerCount(); synchronized int consumerDeficit(); synchronized boolean ready(); synchronized int pending(); LinkedList getQueue(); void setQueue(LinkedList queue);  }