()
| 26 | System.out.println(queue.dump()); |
| 27 | } |
| 28 | @Test |
| 29 | public void full() { |
| 30 | System.out.println("testFull"); |
| 31 | System.out.println(queue.dump()); |
| 32 | System.out.println(queue.get()); |
| 33 | System.out.println(queue.get()); |
| 34 | while(!queue.full()) |
| 35 | queue.put(Integer.toString(i++)); |
| 36 | String msg = ""; |
| 37 | try { |
| 38 | queue.put(""); |
| 39 | } catch(CircularQueueException e) { |
| 40 | msg = e.getMessage(); |
| 41 | System.out.println(msg); |
| 42 | } |
| 43 | assertEquals(msg, "put() into full CircularQueue"); |
| 44 | showFullness(); |
| 45 | } |
| 46 | @Test |
| 47 | public void empty() { |
| 48 | System.out.println("testEmpty"); |
no test coverage detected