(Queue<Object> q)
| 72 | } |
| 73 | |
| 74 | public static void removeEmptyFail(Queue<Object> q) { |
| 75 | try { |
| 76 | q.remove(); |
| 77 | throw new RuntimeException("Exception should have thrown"); |
| 78 | } catch (NoSuchElementException e) { |
| 79 | // expected |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | public static void containsTest(Queue<Object> q) { |
| 84 | Object testObject = new Object(); |