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

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

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

revision 1.56, Thu May 30 03:28:55 2013 UTC revision 1.57, Sun Nov 23 22:27:06 2014 UTC
# Line 896  Line 896 
896          }          }
897      }      }
898    
899        /**
900         * remove(null), contains(null) always return false
901         */
902        public void testNeverContainsNull() {
903            Collection<?>[] qs = {
904                new ArrayBlockingQueue<Object>(10),
905                populatedQueue(2),
906            };
907    
908            for (Collection<?> q : qs) {
909                assertFalse(q.contains(null));
910                assertFalse(q.remove(null));
911            }
912        }
913  }  }

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8