ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentLinkedQueueTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentLinkedQueueTest.java (file contents):
Revision 1.18 by jsr166, Wed Aug 25 01:47:17 2010 UTC vs.
Revision 1.20 by jsr166, Wed Nov 3 07:54:52 2010 UTC

# Line 43 | Line 43 | public class ConcurrentLinkedQueueTest e
43      }
44  
45      /**
46 <     *  Initializing from null Collection throws NPE
46 >     * Initializing from null Collection throws NPE
47       */
48      public void testConstructor3() {
49          try {
# Line 265 | Line 265 | public class ConcurrentLinkedQueueTest e
265      }
266  
267      /**
268 <     *  remove removes next element, or throws NSEE if empty
268 >     * remove removes next element, or throws NSEE if empty
269       */
270      public void testRemove() {
271          ConcurrentLinkedQueue q = populatedQueue(SIZE);
# Line 380 | Line 380 | public class ConcurrentLinkedQueueTest e
380      }
381  
382      /**
383 <     *  toArray(a) contains all elements
383 >     * toArray(a) contains all elements
384       */
385      public void testToArray2() {
386          ConcurrentLinkedQueue q = populatedQueue(SIZE);
# Line 403 | Line 403 | public class ConcurrentLinkedQueueTest e
403      }
404  
405      /**
406 <     * toArray with incompatible array type throws ArrayStoreException
406 >     * toArray(incompatible array type) throws ArrayStoreException
407       */
408      public void testToArray1_BadArg() {
409          ConcurrentLinkedQueue q = populatedQueue(SIZE);
410          try {
411 <            Object o[] = q.toArray(new String[10]);
411 >            q.toArray(new String[10]);
412              shouldThrow();
413          } catch (ArrayStoreException success) {}
414      }
415  
416      /**
417 <     *  iterator iterates through all elements
417 >     * iterator iterates through all elements
418       */
419      public void testIterator() {
420          ConcurrentLinkedQueue q = populatedQueue(SIZE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines