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

Comparing jsr166/src/test/tck/PriorityQueueTest.java (file contents):
Revision 1.6 by dl, Thu Sep 25 11:02:41 2003 UTC vs.
Revision 1.7 by dl, Sun Oct 5 23:00:40 2003 UTC

# Line 173 | Line 173 | public class PriorityQueueTest extends J
173      }
174  
175      /**
176 +     * add(null) throws NPE
177 +     */
178 +    public void testAddNull() {
179 +        try {
180 +            PriorityQueue q = new PriorityQueue(1);
181 +            q.add(null);
182 +            shouldThrow();
183 +        } catch (NullPointerException success) { }  
184 +    }
185 +
186 +    /**
187       * Offer of comparable element succeeds
188       */
189      public void testOffer() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines