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

Comparing jsr166/src/test/tck/ExecutorsTest.java (file contents):
Revision 1.37 by jsr166, Tue Mar 15 19:47:06 2011 UTC vs.
Revision 1.39 by dl, Fri May 6 11:22:07 2011 UTC

# Line 254 | Line 254 | public class ExecutorsTest extends JSR16
254      public void testTimedCallable() throws Exception {
255          final Runnable sleeper = new CheckedInterruptedRunnable() {
256              public void realRun() throws InterruptedException {
257 <                Thread.sleep(LONG_DELAY_MS);
257 >                delay(LONG_DELAY_MS);
258              }};
259          for (ExecutorService executor :
260                   new ExecutorService[] {
# Line 313 | Line 313 | public class ExecutorsTest extends JSR16
313          }
314  
315          try {
316 <            Thread.sleep(SHORT_DELAY_MS);
316 >            delay(SHORT_DELAY_MS);
317          } finally {
318              joinPool(e);
319          }
# Line 349 | Line 349 | public class ExecutorsTest extends JSR16
349                  ExecutorService e = Executors.newSingleThreadExecutor(Executors.privilegedThreadFactory());
350                  e.execute(r);
351                  e.shutdown();
352 <                Thread.sleep(SHORT_DELAY_MS);
352 >                delay(SHORT_DELAY_MS);
353                  joinPool(e);
354              }};
355  
# Line 504 | Line 504 | public class ExecutorsTest extends JSR16
504                  Executors.privilegedCallable(new CheckCCL()).call();
505              }};
506  
507 <         runWithPermissions(r,
507 >        runWithPermissions(r,
508                             new RuntimePermission("getClassLoader"),
509                             new RuntimePermission("setContextClassLoader"));
510      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines