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

Method addTest

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

Source from the content-addressed store, hash-verified

28 }
29
30 public static void addTest(Queue<Object> q) {
31 Object testObject = new Object();
32 q.add(testObject);
33
34 verify(q.size() == 1);
35 verify(q.peek() == testObject);
36 }
37
38 public static void addAllTest(Queue<Object> q) {
39 LinkedList<Object> toAdd = new LinkedList<Object>();

Callers 2

mainMethod · 0.95
mainMethod · 0.95

Calls 4

verifyMethod · 0.95
addMethod · 0.65
sizeMethod · 0.65
peekMethod · 0.65

Tested by

no test coverage detected