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

Comparing jsr166/src/test/tck/AbstractQueueTest.java (file contents):
Revision 1.2 by jsr166, Mon Nov 2 20:28:31 2009 UTC vs.
Revision 1.3 by jsr166, Sat Nov 21 10:25:05 2009 UTC

# Line 59 | Line 59 | public class AbstractQueueTest extends J
59          try {
60              q.add(one);
61              shouldThrow();
62 <        } catch (IllegalStateException success) {
63 <        }
62 >        } catch (IllegalStateException success) {}
63      }
64  
65      /**
# Line 71 | Line 70 | public class AbstractQueueTest extends J
70          try {
71              q.add(null);
72              shouldThrow();
73 <        } catch (NullPointerException success) {
75 <        }
73 >        } catch (NullPointerException success) {}
74      }
75  
76      /**
# Line 91 | Line 89 | public class AbstractQueueTest extends J
89          try {
90              q.remove();
91              shouldThrow();
92 <        } catch (NoSuchElementException success) {
95 <        }
92 >        } catch (NoSuchElementException success) {}
93      }
94  
95  
# Line 112 | Line 109 | public class AbstractQueueTest extends J
109          try {
110              q.element();
111              shouldThrow();
112 <        } catch (NoSuchElementException success) {
116 <        }
112 >        } catch (NoSuchElementException success) {}
113      }
114  
115      /**
# Line 124 | Line 120 | public class AbstractQueueTest extends J
120              Succeed q = new Succeed();
121              q.addAll(null);
122              shouldThrow();
123 <        }
128 <        catch (NullPointerException success) {}
123 >        } catch (NullPointerException success) {}
124      }
125  
126      /**
# Line 136 | Line 131 | public class AbstractQueueTest extends J
131              Succeed q = new Succeed();
132              q.addAll(q);
133              shouldThrow();
134 <        }
140 <        catch (IllegalArgumentException success) {}
134 >        } catch (IllegalArgumentException success) {}
135      }
136  
137  
# Line 150 | Line 144 | public class AbstractQueueTest extends J
144              Integer[] ints = new Integer[SIZE];
145              q.addAll(Arrays.asList(ints));
146              shouldThrow();
147 <        }
154 <        catch (NullPointerException success) {}
147 >        } catch (NullPointerException success) {}
148      }
149      /**
150       * addAll of a collection with any null elements throws NPE after
# Line 165 | Line 158 | public class AbstractQueueTest extends J
158                  ints[i] = new Integer(i);
159              q.addAll(Arrays.asList(ints));
160              shouldThrow();
161 <        }
169 <        catch (NullPointerException success) {}
161 >        } catch (NullPointerException success) {}
162      }
163      /**
164       * addAll throws ISE if an add fails
# Line 179 | Line 171 | public class AbstractQueueTest extends J
171                  ints[i] = new Integer(i);
172              q.addAll(Arrays.asList(ints));
173              shouldThrow();
174 <        }
183 <        catch (IllegalStateException success) {}
174 >        } catch (IllegalStateException success) {}
175      }
176  
177   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines