MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / full

Method full

validating/tests/CircularQueueTest.java:28–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 System.out.println(queue.dump());
27 }
28 @Test
29 public void full() {
30 System.out.println("testFull");
31 System.out.println(queue.dump());
32 System.out.println(queue.get());
33 System.out.println(queue.get());
34 while(!queue.full())
35 queue.put(Integer.toString(i++));
36 String msg = "";
37 try {
38 queue.put("");
39 } catch(CircularQueueException e) {
40 msg = e.getMessage();
41 System.out.println(msg);
42 }
43 assertEquals(msg, "put() into full CircularQueue");
44 showFullness();
45 }
46 @Test
47 public void empty() {
48 System.out.println("testEmpty");

Callers 3

showFullnessMethod · 0.45
showEmptinessMethod · 0.45
circularityMethod · 0.45

Calls 6

showFullnessMethod · 0.95
dumpMethod · 0.80
getMessageMethod · 0.80
getMethod · 0.65
putMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected