[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.79, Sun Nov 6 03:52:59 2016 UTC revision 1.80, Sun Nov 6 04:16:52 2016 UTC
# Line 269  Line 269 
269       * addAll throws ISE if not enough room       * addAll throws ISE if not enough room
270       */       */
271      public void testAddAll_insufficientSpace() {      public void testAddAll_insufficientSpace() {
272          int size = ThreadLocalRandom.current().nextInt(SIZE);          int size = ThreadLocalRandom.current().nextInt(1, SIZE);
273          ArrayBlockingQueue q = populatedQueue(0, size, size, false);          ArrayBlockingQueue q = populatedQueue(0, size, size, false);
274          // Just fits:          // Just fits:
275          q.addAll(populatedQueue(size, size, 2 * size, false));          q.addAll(populatedQueue(size, size, 2 * size, false));
# Line 937  Line 937 
937       */       */
938      public void testNeverContainsNull() {      public void testNeverContainsNull() {
939          Collection<?>[] qs = {          Collection<?>[] qs = {
940              new ArrayBlockingQueue<Object>(10),              populatedQueue(0, 1, 10, false),
941              populatedQueue(2),              populatedQueue(2, 2, 10, true),
942          };          };
943    
944          for (Collection<?> q : qs) {          for (Collection<?> q : qs) {

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.80

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8