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

Comparing jsr166/src/test/tck/ThreadPoolExecutorTest.java (file contents):
Revision 1.54 by jsr166, Fri Sep 4 19:35:46 2015 UTC vs.
Revision 1.55 by jsr166, Fri Sep 4 20:08:27 2015 UTC

# Line 215 | Line 215 | public class ThreadPoolExecutorTest exte
215              new ThreadPoolExecutor(2, 2,
216                                     1000, MILLISECONDS,
217                                     new ArrayBlockingQueue<Runnable>(10));
218 <        assertEquals(1, p.getKeepAliveTime(TimeUnit.SECONDS));
218 >        assertEquals(1, p.getKeepAliveTime(SECONDS));
219          joinPool(p);
220      }
221  
# Line 990 | Line 990 | public class ThreadPoolExecutorTest exte
990      public void testInterruptedSubmit() throws InterruptedException {
991          final ThreadPoolExecutor p =
992              new ThreadPoolExecutor(1, 1,
993 <                                   60, TimeUnit.SECONDS,
993 >                                   60, SECONDS,
994                                     new ArrayBlockingQueue<Runnable>(10));
995  
996          final CountDownLatch threadStarted = new CountDownLatch(1);
# Line 2010 | Line 2010 | public class ThreadPoolExecutorTest exte
2010                  done.countDown();
2011              }};
2012          final ThreadPoolExecutor p =
2013 <            new ThreadPoolExecutor(1, 30, 60, TimeUnit.SECONDS,
2013 >            new ThreadPoolExecutor(1, 30,
2014 >                                   60, SECONDS,
2015                                     new ArrayBlockingQueue(30));
2016          try {
2017              for (int i = 0; i < nTasks; ++i) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines