Home | History | Annotate | Download | only in util

Lines Matching defs:pop

43         s.pop();
65 s.pop();
66 assertTrue("Peek did not return top item after a pop", s.pop() == item2);
70 s.pop();
71 s.pop();
73 s.pop();
81 * java.util.Stack#pop()
84 // Test for method java.lang.Object java.util.Stack.pop()
92 lastPopped = s.pop();
93 assertTrue("a) Pop did not return top item", lastPopped == item2);
96 "a) Pop threw EmptyStackException when stack should not have been empty");
100 lastPopped = s.pop();
101 assertTrue("b) Pop did not return top item", lastPopped == item1);
104 "b) Pop threw EmptyStackException when stack should not have been empty");
109 lastPopped = s.pop();
110 assertNull("c) Pop did not return top item", lastPopped);
113 "c) Pop threw EmptyStackException when stack should not have been empty");
117 lastPopped = s.pop();
119 "d) Pop did not throw EmptyStackException when stack should have been empty");
157 s.pop();
168 s.pop();
169 s.pop();
184 //test for wrong exception threw by pop method
191 testStack.pop();