[cvs] / jsr166 / src / test / tck / ArrayBlockingQueueTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ArrayBlockingQueueTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35, Tue Oct 19 00:43:49 2010 UTC revision 1.36, Thu Oct 28 17:57:26 2010 UTC
# Line 393  Line 393 
393      }      }
394    
395      /**      /**
      * take blocks interruptibly when empty  
      */  
     public void testTakeFromEmpty() throws InterruptedException {  
         final ArrayBlockingQueue q = new ArrayBlockingQueue(2);  
         Thread t = new ThreadShouldThrow(InterruptedException.class) {  
             public void realRun() throws InterruptedException {  
                 q.take();  
             }};  
   
         t.start();  
         Thread.sleep(SHORT_DELAY_MS);  
         t.interrupt();  
         t.join();  
     }  
   
     /**  
396       * Take removes existing elements until empty, then blocks interruptibly       * Take removes existing elements until empty, then blocks interruptibly
397       */       */
398      public void testBlockingTake() throws InterruptedException {      public void testBlockingTake() throws InterruptedException {

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8