Пример #1
0
 /** Tests that isEmpty() is working correctly when items are being pushed/popped. */
 @Ignore
 @Test
 public void testEmptyMethod() {
   final StackIF<Integer> stack = makeIntegerStack();
   assertTrue("Stack should be empty", stack.isEmpty());
   stack.push(1);
   stack.push(2);
   assertFalse("Stack should not be empty", stack.isEmpty());
   stack.pop();
   stack.pop();
   assertTrue("Stack should be empty", stack.isEmpty());
 }