[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.33, Mon Jan 14 22:05:39 2013 UTC revision 1.34, Wed Sep 25 07:39:17 2013 UTC
# Line 46  Line 46 
46      public void testExecuteRunnable() throws Exception {      public void testExecuteRunnable() throws Exception {
47          ExecutorService e = new DirectExecutorService();          ExecutorService e = new DirectExecutorService();
48          final AtomicBoolean done = new AtomicBoolean(false);          final AtomicBoolean done = new AtomicBoolean(false);
49          CheckedRunnable task = new CheckedRunnable() {          Future<?> future = e.submit(new CheckedRunnable() {
50              public void realRun() {              public void realRun() {
51                  done.set(true);                  done.set(true);
52              }};              }});
         Future<?> future = e.submit(task);  
53          assertNull(future.get());          assertNull(future.get());
54          assertNull(future.get(0, MILLISECONDS));          assertNull(future.get(0, MILLISECONDS));
55          assertTrue(done.get());          assertTrue(done.get());

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8