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