[cvs] / jsr166 / src / test / tck / ArrayDequeTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ArrayDequeTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28, Thu May 30 03:28:55 2013 UTC revision 1.29, Sun Nov 23 22:27:06 2014 UTC
# Line 890  Line 890 
890          assertTrue(y.isEmpty());          assertTrue(y.isEmpty());
891      }      }
892    
893        /**
894         * remove(null), contains(null) always return false
895         */
896        public void testNeverContainsNull() {
897            Deque<?>[] qs = {
898                new ArrayDeque<Object>(),
899                populatedDeque(2),
900            };
901    
902            for (Deque<?> q : qs) {
903                assertFalse(q.contains(null));
904                assertFalse(q.remove(null));
905                assertFalse(q.removeFirstOccurrence(null));
906                assertFalse(q.removeLastOccurrence(null));
907            }
908        }
909    
910  }  }

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8