(Queue<Object> q)
| 56 | } |
| 57 | |
| 58 | public static void elementFail(Queue<Object> q) { |
| 59 | try { |
| 60 | q.element(); |
| 61 | throw new RuntimeException("Exception should have thrown"); |
| 62 | } catch (NoSuchElementException e) { |
| 63 | // expected |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | public static void removeTest(Queue<Object> q) { |
| 68 | Object testObject = new Object(); |