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

Method elementFail

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

Source from the content-addressed store, hash-verified

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

Callers 2

mainMethod · 0.95
mainMethod · 0.95

Calls 1

elementMethod · 0.65

Tested by

no test coverage detected