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

Method toArrayTest

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

Source from the content-addressed store, hash-verified

135 }
136
137 public static void toArrayTest(Queue<Object> q) {
138 if (q.toArray().length != 0) {
139 throw new RuntimeException();
140 }
141
142 Object testObject = new Object();
143 q.add(testObject);
144
145 Object[] result = q.toArray();
146 verify(result.length == 1);
147 verify(result[0] == testObject);
148 }
149}

Callers 2

mainMethod · 0.95
mainMethod · 0.95

Calls 3

verifyMethod · 0.95
toArrayMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected