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

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

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

revision 1.43, Thu Oct 8 03:03:36 2015 UTC revision 1.44, Thu Oct 8 03:08:37 2015 UTC
# Line 468  Line 468 
468      public void testTimedInvokeAny5() throws Exception {      public void testTimedInvokeAny5() throws Exception {
469          final ExecutorService e = new DirectExecutorService();          final ExecutorService e = new DirectExecutorService();
470          try (PoolCleaner cleaner = cleaner(e)) {          try (PoolCleaner cleaner = cleaner(e)) {
471                long startTime = System.nanoTime();
472              List<Callable<String>> l = new ArrayList<Callable<String>>();              List<Callable<String>> l = new ArrayList<Callable<String>>();
473              l.add(new StringTask());              l.add(new StringTask());
474              l.add(new StringTask());              l.add(new StringTask());
475              String result = e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS);              String result = e.invokeAny(l, LONG_DELAY_MS, MILLISECONDS);
476              assertSame(TEST_STRING, result);              assertSame(TEST_STRING, result);
477                assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
478          }          }
479      }      }
480    

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8