@Test public void empty() { System.out.println("testEmpty"); while (!queue.empty()) System.out.println(queue.get()); String msg = ""; try { queue.get(); } catch (CircularQueueException e) { msg = e.getMessage(); System.out.println(msg); } assertEquals(msg, "get() from empty CircularQueue"); showEmptiness(); }
public boolean empty() { return !wrapped && in == out; }
CircularQueue { public boolean empty() { return !wrapped && in == out; } }
CircularQueue { public boolean empty() { return !wrapped && in == out; } CircularQueue(int size); }
CircularQueue { public boolean empty() { return !wrapped && in == out; } CircularQueue(int size); boolean empty(); boolean full(); boolean isWrapped(); void put(Object item); Object get(); String dump(); }
CircularQueue { public boolean empty() { return !wrapped && in == out; } CircularQueue(int size); boolean empty(); boolean full(); boolean isWrapped(); void put(Object item); Object get(); String dump();  }