[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.90, Sun May 14 04:14:09 2017 UTC revision 1.91, Mon May 29 22:44:26 2017 UTC
# Line 103  Line 103 
103      }      }
104    
105      /**      /**
106       * Constructor throws IAE if capacity argument nonpositive       * Constructor throws IllegalArgumentException if capacity argument nonpositive
107       */       */
108      public void testConstructor_nonPositiveCapacity() {      public void testConstructor_nonPositiveCapacity() {
109          for (int i : new int[] { 0, -1, Integer.MIN_VALUE }) {          for (int i : new int[] { 0, -1, Integer.MIN_VALUE }) {
# Line 156  Line 156 
156      }      }
157    
158      /**      /**
159       * Initializing from too large collection throws IAE       * Initializing from too large collection throws IllegalArgumentException
160       */       */
161      public void testConstructor_collectionTooLarge() {      public void testConstructor_collectionTooLarge() {
162          // just barely fits - succeeds          // just barely fits - succeeds
# Line 227  Line 227 
227      }      }
228    
229      /**      /**
230       * add succeeds if not full; throws ISE if full       * add succeeds if not full; throws IllegalStateException if full
231       */       */
232      public void testAdd() {      public void testAdd() {
233          ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE);          ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE);
# Line 240  Line 240 
240      }      }
241    
242      /**      /**
243       * addAll(this) throws IAE       * addAll(this) throws IllegalArgumentException
244       */       */
245      public void testAddAllSelf() {      public void testAddAllSelf() {
246          ArrayBlockingQueue q = populatedQueue(SIZE);          ArrayBlockingQueue q = populatedQueue(SIZE);
# Line 266  Line 266 
266      }      }
267    
268      /**      /**
269       * addAll throws ISE if not enough room       * addAll throws IllegalStateException if not enough room
270       */       */
271      public void testAddAll_insufficientSpace() {      public void testAddAll_insufficientSpace() {
272          int size = ThreadLocalRandom.current().nextInt(1, SIZE);          int size = ThreadLocalRandom.current().nextInt(1, SIZE);

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8