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

Comparing jsr166/src/test/tck/DelayQueueTest.java (file contents):
Revision 1.47 by jsr166, Tue Mar 15 19:47:06 2011 UTC vs.
Revision 1.48 by jsr166, Thu Apr 14 22:55:08 2011 UTC

# Line 318 | Line 318 | public class DelayQueueTest extends JSR1
318      /**
319       * put(null) throws NPE
320       */
321 <     public void testPutNull() {
321 >    public void testPutNull() {
322          try {
323              DelayQueue q = new DelayQueue();
324              q.put(null);
325              shouldThrow();
326          } catch (NullPointerException success) {}
327 <     }
327 >    }
328  
329      /**
330       * all elements successfully put are contained
331       */
332 <     public void testPut() {
333 <         DelayQueue q = new DelayQueue();
334 <         for (int i = 0; i < SIZE; ++i) {
335 <             PDelay I = new PDelay(i);
336 <             q.put(I);
337 <             assertTrue(q.contains(I));
338 <         }
339 <         assertEquals(SIZE, q.size());
332 >    public void testPut() {
333 >        DelayQueue q = new DelayQueue();
334 >        for (int i = 0; i < SIZE; ++i) {
335 >            PDelay I = new PDelay(i);
336 >            q.put(I);
337 >            assertTrue(q.contains(I));
338 >        }
339 >        assertEquals(SIZE, q.size());
340      }
341  
342      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines