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();  }
@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(); }