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

Comparing jsr166/src/test/tck/SynchronousQueueTest.java (file contents):
Revision 1.45 by jsr166, Wed Dec 31 20:29:13 2014 UTC vs.
Revision 1.47 by jsr166, Sat Apr 25 04:55:31 2015 UTC

# Line 36 | Line 36 | public class SynchronousQueueTest extend
36      }
37  
38      public static void main(String[] args) {
39 <        junit.textui.TestRunner.run(suite());
39 >        main(suite(), args);
40      }
41  
42      public static Test suite() {
# Line 434 | Line 434 | public class SynchronousQueueTest extend
434      public void testIterator()      { testIterator(false); }
435      public void testIterator_fair() { testIterator(true); }
436      public void testIterator(boolean fair) {
437 <        final SynchronousQueue q = new SynchronousQueue(fair);
438 <        Iterator it = q.iterator();
439 <        assertFalse(it.hasNext());
440 <        try {
441 <            Object x = it.next();
442 <            shouldThrow();
443 <        } catch (NoSuchElementException success) {}
437 >        assertIteratorExhausted(new SynchronousQueue(fair).iterator());
438      }
439  
440      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines