[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.28, Mon Oct 11 07:21:32 2010 UTC revision 1.29, Mon Oct 11 08:30:50 2010 UTC
# Line 589  Line 589 
589          try {          try {
590              List<Callable<String>> l = new ArrayList<Callable<String>>();              List<Callable<String>> l = new ArrayList<Callable<String>>();
591              l.add(new StringTask());              l.add(new StringTask());
592              l.add(Executors.callable(new MediumPossiblyInterruptedRunnable(), TEST_STRING));              l.add(Executors.callable(possiblyInterruptedRunnable(2 * SHORT_DELAY_MS), TEST_STRING));
593              l.add(new StringTask());              l.add(new StringTask());
594              List<Future<String>> futures =              List<Future<String>> futures =
595                  e.invokeAll(l, SMALL_DELAY_MS, MILLISECONDS);                  e.invokeAll(l, SHORT_DELAY_MS, MILLISECONDS);
596              assertEquals(3, futures.size());              assertEquals(3, futures.size());
597              Iterator<Future<String>> it = futures.iterator();              Iterator<Future<String>> it = futures.iterator();
598              Future<String> f1 = it.next();              Future<String> f1 = it.next();
# Line 601  Line 601 
601              assertTrue(f1.isDone());              assertTrue(f1.isDone());
602              assertFalse(f1.isCancelled());              assertFalse(f1.isCancelled());
603              assertTrue(f2.isDone());              assertTrue(f2.isDone());
604                assertFalse(f2.isCancelled());
605              assertTrue(f3.isDone());              assertTrue(f3.isDone());
606              assertTrue(f3.isCancelled());              assertTrue(f3.isCancelled());
607          } finally {          } finally {

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8