MCPcopy Create free account
hub / github.com/ReadyTalk/avian / removeEmptyFail

Method removeEmptyFail

test/QueueHelper.java:74–81  ·  view source on GitHub ↗
(Queue<Object> q)

Source from the content-addressed store, hash-verified

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

Callers 2

mainMethod · 0.95
mainMethod · 0.95

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected