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.10 by jsr166, Mon Nov 2 20:28:32 2009 UTC vs.
Revision 1.11 by jsr166, Mon Nov 16 04:57:10 2009 UTC

# Line 625 | Line 625 | public class SynchronousQueueTest extend
625              SynchronousQueue q = new SynchronousQueue();
626              Object o[] = q.toArray(null);
627              shouldThrow();
628 <        } catch(NullPointerException success){}
628 >        } catch (NullPointerException success){}
629      }
630  
631  
# Line 754 | Line 754 | public class SynchronousQueueTest extend
754              assertEquals(q.size(), r.size());
755              while (!q.isEmpty())
756                  assertEquals(q.remove(), r.remove());
757 <        } catch(Exception e){
757 >        } catch (Exception e){
758              e.printStackTrace();
759              unexpectedException();
760          }
# Line 768 | Line 768 | public class SynchronousQueueTest extend
768          try {
769              q.drainTo(null);
770              shouldThrow();
771 <        } catch(NullPointerException success) {
771 >        } catch (NullPointerException success) {
772          }
773      }
774  
# Line 780 | Line 780 | public class SynchronousQueueTest extend
780          try {
781              q.drainTo(q);
782              shouldThrow();
783 <        } catch(IllegalArgumentException success) {
783 >        } catch (IllegalArgumentException success) {
784          }
785      }
786  
# Line 819 | Line 819 | public class SynchronousQueueTest extend
819                  assertEquals(l.get(0), new Integer(1));
820              t.join();
821              assertTrue(l.size() <= 1);
822 <        } catch(Exception e){
822 >        } catch (Exception e){
823              unexpectedException();
824          }
825      }
# Line 832 | Line 832 | public class SynchronousQueueTest extend
832          try {
833              q.drainTo(null, 0);
834              shouldThrow();
835 <        } catch(NullPointerException success) {
835 >        } catch (NullPointerException success) {
836          }
837      }
838  
# Line 844 | Line 844 | public class SynchronousQueueTest extend
844          try {
845              q.drainTo(q, 0);
846              shouldThrow();
847 <        } catch(IllegalArgumentException success) {
847 >        } catch (IllegalArgumentException success) {
848          }
849      }
850  
# Line 885 | Line 885 | public class SynchronousQueueTest extend
885              assertTrue(l.contains(two));
886              t1.join();
887              t2.join();
888 <        } catch(Exception e){
888 >        } catch (Exception e){
889              unexpectedException();
890          }
891      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines